Fault-Tolerant Replication with Pull-Based Consensus in MongoDB
Siyuan Zhou, Shuai Mu
Abstract
In this paper, we present the design and implementation of strongly consistent replication in MongoDB. MongoDB provides linearizability and tolerates any minority of failures through a novel consensus protocol that derives from Raft. A major difference between our protocol and vanilla Raft is that MongoDB deploys a unique pull-based data synchronization model: a replica pulls new data from another replica. This pull-based data synchronization in MongoDB can be initiated by any replica and can happen between any two replicas, as opposed to vanilla Raft, where new data can only be pushed from the primary to other replicas. This flexible data transmission topology enabled by the pull-based model is strongly desired by our users since it has an edge on performance and monetary cost. This paper describes how this consensus protocol works, how MongoDB integrates it with the rest of the replication system, and the extensions of the replication protocol that support our rich feature set. Our evaluation shows that MongoDB effectively achieved the design goals and can replicate data efficiently and reliably.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 8fdec095-2b54-40dc-b4e9-0813787a6402Cited by top-tier papers9
- Metastable Failures in the WildLexiang Huang, Matthew Magnusson, Abishek Bangalore Muralikrishna, Salman Estyak et al.OSDI 2022 · 38 citations
- Waverunner: An Elegant Approach to Hardware Acceleration of State Machine ReplicationMohammadreza Alimadadi, Hieu Mai, Shenghsun Cho, Michael Ferdman et al.NSDI 2023 · 16 citations
- RL-Watchdog: A Fast and Predictable SSD Liveness Watchdog on Storage SystemsJinyong Ha, Sangjin Lee, Heon Young Yeom, Yongseok SonUSENIX ATC 2024 · 10 citations
- RpcNIC: Enabling Efficient Datacenter RPC Offloading on PCIe-attached SmartNICsJie Zhang, Hongjing Huang, Xuzheng Chen, Xiang Li et al.HPCA 2025 · 6 citations
- LeaseGuard: Raft Leases Done RightA. Jesse Jiryu Davis, Murat Demirbas, Lingzhi DengSIGMOD 2026 · 2 citations
Builds on2
Related papers
- eXtreme Modelling in PracticeA. Jesse Jiryu Davis, Max Hirschhorn, Judah SchvimerVLDB 2020
- CD-Raft: Reducing the Latency of Distributed Consensus in Cross-Domain SitesYangyang Wang, Ziqian Cheng, Yucong Dong, Zichen XuINFOCOM 2026
- LSM-Raft: Optimizing Raft for LSM-tree StoreXiaojian Zhang, Xinyu Tan, Shaoxu Song, Xiangdong Huang et al.SIGMOD 2026 · 1 citation
- Cabinet: Dynamically Weighted Consensus Made FastGengrui Zhang, Shiquan Zhang, Michail Bachras, Yuqiu Zhang et al.VLDB 2025 · 1 citation
- Bolt-On Strong Consistency: Specification, Implementation, and VerificationNicholas V. Lewchenko, Gowtham Kaki, Bor-Yuh Evan ChangOOPSLA 2025 · 2 citations
