/governor

Distributes work to local and/or remote agents

Primary LanguageJavaScriptMIT LicenseMIT

governor

Startup:

  1. check all cli args
  2. validate args
  3. create/setup socket.io server
  4. register priority with local server
  5. create cluster connections
  6. identify the local server connection
  7. broadcast it's new node name, it's priority, it's current process uptime, and whether it's a master or not
  8. each node should wait 10 seconds before voting on which node should be master
  9. broadcast vote
  10. elected node becomes master