Fault-Tolerant Replication with Pull-Based Consensus in MongoDB
Siyuan Zhou, Shuai Mu
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Waverunner: An Elegant Approach to Hardware Acceleration of State Machine Replication 引用了 PigPaxos: Devouring the Communication Bottlenecks in Distributed Consensus
- Virtual Consensus in Delos 引用了 PigPaxos: Devouring the Communication Bottlenecks in Distributed Consensus
- RL-Watchdog: A Fast and Predictable SSD Liveness Watchdog on Storage Systems 引用了 Metastable Failures in the Wild
- LeaseGuard: Raft Leases Done Right 引用了 Metastable Failures in the Wild
引用它的顶会 Paper9
- Metastable Failures in the WildLexiang Huang, Matthew Magnusson, Abishek Bangalore Muralikrishna, Salman Estyak 等OSDI 2022 · 38 次引用
- Waverunner: An Elegant Approach to Hardware Acceleration of State Machine ReplicationMohammadreza Alimadadi, Hieu Mai, Shenghsun Cho, Michael Ferdman 等NSDI 2023 · 16 次引用
- RL-Watchdog: A Fast and Predictable SSD Liveness Watchdog on Storage SystemsJinyong Ha, Sangjin Lee, Heon Young Yeom, Yongseok SonUSENIX ATC 2024 · 10 次引用
- RpcNIC: Enabling Efficient Datacenter RPC Offloading on PCIe-attached SmartNICsJie Zhang, Hongjing Huang, Xuzheng Chen, Xiang Li 等HPCA 2025 · 6 次引用
- LeaseGuard: Raft Leases Done RightA. Jesse Jiryu Davis, Murat Demirbas, Lingzhi DengSIGMOD 2026 · 2 次引用
它引用的 Paper2
相关 Paper
- 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 等SIGMOD 2026 · 1 次引用
- Cabinet: Dynamically Weighted Consensus Made FastGengrui Zhang, Shiquan Zhang, Michail Bachras, Yuqiu Zhang 等VLDB 2025 · 1 次引用
- Bolt-On Strong Consistency: Specification, Implementation, and VerificationNicholas V. Lewchenko, Gowtham Kaki, Bor-Yuh Evan ChangOOPSLA 2025 · 2 次引用
