Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 645 Bytes

File metadata and controls

16 lines (12 loc) · 645 Bytes

Chief

GoDoc

Package github.com/olomix/chief elects a leader using etcd and runs a pool of workers on leader. If leadership is lost, workers shut down and run on another instance that takes leadership.

TODOs

  • Let Worker.Start return an error; if startup fails, relinquish leadership so another instance can try.
  • Support multiple independent elections, one per worker group.
  • API to query the current leader.
  • API to voluntarily relinquish leadership.
  • API to stop and unregister an individual worker.