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

Support auto adjusting quorum size for 2-node cluster #119

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

greensky00
Copy link
Contributor

@greensky00 greensky00 commented Jun 10, 2020

  • The quorum size of the 2-node cluster is 2, which means if any node
    goes offline, the cluster becomes unavailable immediately.

  • Added a configurable option: if we turn on this option, the quorum
    size of the 2-node cluster is automatically adjusted to 1, if any
    node becomes offline. The remaining node can do self-election and
    also can commit incoming requests. The quorum size will be restored
    using the default value once the offline node becomes online.

  • It is not entirely safe, and dealing with log divergence is the
    users' responsibility. Using the custom term counter to avoid
    duplicate terms may be helpful.

* The quorum size of the 2-node cluster is 2, which means if any node
goes offline, the cluster becomes unavailable immediately.

* Added a configurable option: if we turn on this option, the quorum
size of the 2-node cluster is automatically adjusted to 1, if any
node becomes offline. The remaining node can do self-election and
also can commit incoming requests. The quorum size will be restored
using the default value once the offline node becomes online.

* It is not entirely safe, and dealing with log divergence is the
users' responsibility. Using the custom term counter to avoid
duplicate terms may be helpful.
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