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

Commits on Jun 10, 2020

  1. Support auto adjusting quorum size for 2-node cluster

    * 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.
    greensky00 committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    c8b077a View commit details
    Browse the repository at this point in the history