Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cluster convergence can fail when nodes in a group start at the same time. #2144
Say, if we have
Similar logs can be observed on all three servers.
A solution would be that Zero shouldn't add a node to a group until a leader has been elected.
No, it's never elected. Imagine a situation where all alpha nodes see some peer while starting up because Zero added all of them to Group 1. And they are all trying to retrieve snapshot from the leader of group 1 which is blocking. Now, none of them would elect a leader until snapshot completes which won't complete because there is no leader.