# Monitor quorum under a network partition

*HTML: https://book.ceph-s3.ir/en/lab-quorum.html*
*Licence: CC BY-NC-SA 4.0. Author: Ramin Najarbashi.*

[Interactive lab](lab.html)Monitor quorum under a network partition
In the book: [Chapter 7](07-cluster-operations.html#sec-07-8-4)
LabMonitor quorum under a network partitionSplit the network, switch monitors off and see which side can elect a leader; then step from election to a Paxos commit.**3**majority needed**2**failures tolerated (fully connected)**mon.0**steady-state leader{0, 1, 2}3 members; need 3; leader mon.0{3, 4}2 members; need 3; no quorum1. PROPOSE in an odd epochMonitors 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 timeoutsA fixed snapshot of the simulator; the interactive version is in the web edition's lab. [Interactive lab: Monitor quorum under a network partition](lab-quorum.html)The interactive version needs JavaScript; this is a fixed snapshot.
