-
Notifications
You must be signed in to change notification settings - Fork 21
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
Election optimization #229
Comments
Thanks for the proposals. Maybe it's better to left the details on how we should implement them? |
The specific process of the PreVote stage is to send a PreVote message to all nodes before initiating the real election (not much different from the actual voting message, but it will not automatically increase its own term), and the node that receives the message agrees to the conditions for re-election Yes:
Only when more than half of the nodes agree to PreVote, the node can self-increase the term to initiate a real election and send a RequestVote request. |
Check Quorum is a mechanism for leaders to step down. The leader node sends a message to check whether it maintains more than half of the connections with other nodes in the cluster. If not, it becomes a follower node. |
The leader lease mechanism means that the node will not vote for other nodes within an election timeout period when the node receives a message from the leader. |
The text was updated successfully, but these errors were encountered: