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

SuspendLeading(duration) #221

Closed
wants to merge 1 commit into from

Conversation

shlomi-noach
Copy link

Storyline: #218

This PR introduced the SuspendLeading(duration time.Duration) function, which disabled a nodes from getting into the Candidate state for a bounded duration.

It is similar in implementation to #220.

Together with #219, a user can transfer leadership of a group by:

  • running SuspendLeading() on all nodes but the one the user wishes to promote; duration would be e.g. heartbeat interval*2
  • running StepDown() on the current leader

@shlomi-noach shlomi-noach mentioned this pull request Jul 2, 2017
@shlomi-noach shlomi-noach deleted the suspend-leading branch July 2, 2017 05:50
@shlomi-noach shlomi-noach mentioned this pull request Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant