Skip to content

How to make a node that will not become a candidate? #1235

Answered by drmingdrmer
LazyMechanic asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. enable_elect: false will disable election for this node.
And yes, this node will still vote for other leader.

Yes, if one nodes goes offline, but not yet being removed from the cluster with Raft::change_membership(), one of the other two nodes will elect and become the leader. The cluster is still in a consistent state.

If a node is removed from the cluster with Raft::change_membership(), the state is also consistent, but a two nodes cluster won't tolerate any node failure.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LazyMechanic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants