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
{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 AlgorithmClassic electionsrc/mon/ElectionLogic.cc :: end_election_period, receive_ackMajority conditionsrc/mon/Paxos.cc :: handle_accept, accept_timeout, lease_ack_timeoutAcceptance and timeouts