Skip to content

Repository files navigation

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.

About

Leader goroutine controller based on etcd cluster

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages