Giter Site home page Giter Site logo

robocluster_manager's People

Contributors

chameleon07 avatar climathosphere avatar ikramsalim avatar jpas avatar liambindle avatar ottopasuuna avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

robocluster_manager's Issues

Monitor process state

The process manager needs to be able to tell when a process is crashed, stuck in a loop, or operating normally, and decide what to do if abnormal behaviour is detected.

Updates to this repository are not being published to Slack

I have noticed that updates and issues from this repository were not being published on the Github and Github-Issues channels on Slack. I'm not sure if this is mandatory or not, but it would be nice to have the updates published on Slack.

Logging system

Instead of processes just printing to standard out, the process manager could agregate logging from all processes on the network and dump it to a common file.

USB device management

The process manager will also be in charge of handling USB devices.

  • Detect when USB devices are plugged in or disconnected.
  • "Loan" USB devices to processes.

Processes must talk to the process manager to find a USB serial device. Assuming the USB device is not already in use by another process, the process manager will give the requesting process a direct communication channel to the USB device. For now we well only allow devices to be accessed on the same computer, but in the future it may be interesting to allow processes on one computer to access USB devices on another computer.

Read process configuration from a file.

It would be nice to have a single file that identifies which process should be run on each mahcine.
I am thinking JSON would be a convenient format, as we will be using it for data serialization anyway.
Example format:

{ 
    "localhost" : {
        "sleeper" : {
            "cmd" : "python sleeper.py"
        },
        "crash": {
            "cmd" : "python crash.py"
        }
    },
   "DrivePy" : {
       "DriveProcess" : {
           "cmd" : "python DriveProcess.py",
           "some_setting": 5
       },
       "NavigationProcess" : {
           "cmd" : "./NavigationProcess"
       }
   },
   "ArmPy" : {
       "ArmProcess" : {
           "cmd" : "python ArmProcess.py"
       }
   }
}

The master process manager would read this file on start up and tell other process managers what processes to run.

Ensure robocluster has a kill switch

If something goes wrong during the operation of the rover and we need to shut everything down,
a kill command from the master node should ensure every process on the system is stopped immediately.

Share process state with other process managers

Each process manager will share the state of its own processes with all the other process managers.
This should also provide mechanisms for processes on one machine to talk directly to processes on another machine. Some sort of concensus algorithm should be used so that process managers on different machines agree with one another as to what the global state is.

Remote API

Currently in progess, we need to be able to start and stop process remotely from another machine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.