Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leader role handover #10

Open
rkrzewski opened this issue Oct 6, 2015 · 1 comment
Open

Leader role handover #10

rkrzewski opened this issue Oct 6, 2015 · 1 comment

Comments

@rkrzewski
Copy link
Owner

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 rkrzewski self-assigned this Oct 19, 2015
rkrzewski added a commit that referenced this issue Oct 19, 2015
let the ClusterDiscoveryActor instance running on the node that becomes
the new cluster leader also assume discovery leader role.
@rkrzewski
Copy link
Owner Author

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

everpeace added a commit to everpeace/akka-cluster-etcd that referenced this issue Apr 16, 2016
ClusterDiscoveryActor should listen ClusterDomainEvent rather than MemberEvent when it is Follwer because LeaderChanged event is not MemberEvent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant