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

Provide a way to transfer leadership via API or CLI #5405

Open
hanshasselberg opened this issue Mar 1, 2019 · 2 comments
Open

Provide a way to transfer leadership via API or CLI #5405

hanshasselberg opened this issue Mar 1, 2019 · 2 comments
Labels
theme/internals Serf, Raft, SWIM, Lifeguard, Anti-Entropy, locking topics type/enhancement Proposed improvement or new feature

Comments

@hanshasselberg
Copy link
Member

This would be great for example when upgrading a consul cluster. Before restarting the leader, it could transfer leadership which is faster because it doesn't need to wait for the electionTimeout to fire. Requires hashicorp/raft#306.

@pearkes pearkes added the type/enhancement Proposed improvement or new feature label Apr 4, 2019
@pearkes pearkes added this to the Upcoming milestone Apr 4, 2019
@jsosulska
Copy link
Contributor

@nicholasjackson mentioned is that there should be a way to ensure that when this is called, the previous leader doesn't get reelected.

One recommendation was to grant a temporary non-voting status to the leader, then bringing up a new instance afterwards

@mikemorris mikemorris removed this from the Upcoming milestone Nov 10, 2020
@mikemorris mikemorris added the theme/internals Serf, Raft, SWIM, Lifeguard, Anti-Entropy, locking topics label Nov 10, 2020
@jkirschner-hashicorp
Copy link
Contributor

Note: it looks like Vault implemented this in hashicorp/vault#1146, which was done prior to the (also now merged) hashicorp/raft#306. It seems like the Vault approach restarts the leader without first transferring leadership.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/internals Serf, Raft, SWIM, Lifeguard, Anti-Entropy, locking topics type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

5 participants