The Comprehensive Ceph Guide
فارسیGet started

Monitor quorum under a network partition

In the book: Chapter 7

Lab

Monitor quorum under a network partition

Split the network, switch monitors off and see which side can elect a leader; then step from election to a Paxos commit.

3majority needed
2failures tolerated (fully connected)
mon.0steady-state leader
01234

{0, 1, 2}

3 members; need 3; leader mon.0

{3, 4}

2 members; need 3; no quorum

1. PROPOSE in an odd epoch

Monitors propose themselves; classic defers to a lower rank. A newer epoch can restart the election.

MON is not on every data read/write path; losing quorum is not identical to immediately stopping every existing I/O, but map updates and new authentication are affected.

Follows:

  • doc/dev/mon-elections.rst :: The Original Algorithm Classic election
  • src/mon/ElectionLogic.cc :: end_election_period, receive_ack Majority condition
  • src/mon/Paxos.cc :: handle_accept, accept_timeout, lease_ack_timeout Acceptance and timeouts
A fixed snapshot of the simulator; the interactive version is in the web edition's lab. Interactive lab: Monitor quorum under a network partition