Git Product home page Git Product logo

Comments (3)

DrJian avatar DrJian commented on July 29, 2024

What is "majority" exactly? More detailed questions:

  1. If the network is split, will be "majority" be recalculed for each partition separately?
  2. What if node A connects to nodes B and C, but node B doesn't connect to C? What is "majority" in such a case?

majority means over half of all node. for example : there are 5 nodes in the cluster, majority means at least 3 nodes. when a cluster split into tow cluster A B cause network error, in terms of A or B, majority also means at least 3 nodes, for which we will get the exactly correct write data after cluster network heal.

from thesecretlivesofdata.

hubertgrzeskowiak avatar hubertgrzeskowiak commented on July 29, 2024

Does this imply that we need an odd number of nodes, and that a partition must contain the majority of all nodes? What if there is suddenly three partitions and none has the majority?

from thesecretlivesofdata.

sid597 avatar sid597 commented on July 29, 2024

Does this imply that we need an odd number of nodes, and that a partition must contain the majority of all nodes? What if there is suddenly three partitions and none has the majority?

Yes, we need to have odd no of nodes, if we allow for even no of nodes we can run into the issue of split brain. If there are partitions such that none of them have a majority then elections will continue indefinetly and raft will not be able to respond to client.

from thesecretlivesofdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.