rkrzewski / akka-cluster-etcd

Akka cluster management using etcd
Other
70 stars 14 forks source link

Leader role handover #10

Open rkrzewski opened 8 years ago

rkrzewski commented 8 years ago

ClusterDiscoveryActor instance on node that lost leader election should subscribe to cluster events and in case it's host node was appointed to be the new leader of Akka cluster should transition to leader role: register itself as leader in etcd and update the seed list according to it's best knowledge. This will ensure that new nodes will be able to use discovery properly after the original leader leaves the cluster.

rkrzewski commented 8 years ago

Basic implementation + unit test added in 4ebfceb987b168cb978153b1d0b4085835cc5510 Proper integration tests are still needed