How we designed and model checked MongoDB reconfiguration protocol
summary
Describes designing a heartbeat‑based reconfig protocol that supports force reconfig while preserving safety; uses TLA+ model checking to iterate designs, reproducing a counterexample after a 150‑line change on day one and finding further bugs across days two–five. Adds quorum, op‑commit and config‑term/version rules, merges election and config consensus, produces a draft in a week and an implementation in three months by 3–4 developers, and ships as mongod db44 in 2019, running reliably in production.
AI-written summary · about
