How Raft consensus algorithm will make replication even better in MongoDB 3 2
summary
MongoDB 3.2 integrates Raft ideas to make leader elections deterministic and faster: it adds Raft-like election terms and a new oplog ordering of term+counter so replicas can compare which writes are authoritative. Elections use majority voting with backoff (short heartbeats, configurable timeouts) to avoid split‑brain and cut failover to a few seconds in practice. Changes land in the 3.2 codebase, run in clusters (dozens of nodes across regions) and show more robust, predictable replication behavior.
AI-written summary · about
chapters (9)
- 0:00Introduction and context
- 5:30Why replication matters
- 9:02Consensus algorithm basics
- 13:18Leader election process
- 20:50Raft algorithm introduction
- 24:24MongoDB 3.2 improvements
- 30:57Raft implementation details
- 36:45Replication chain and heartbeat
- 41:05Summary and conclusions
related talks
12mFault-Tolerant Replication with Pull-Based Consensus in MongoDB
47mDistributed Systems: When Democracy and Computer Science Come Together
41mThe Raft Consensus Algorithm
47mUnderstanding Raft Consensus
42mPractical Raft Consensus
51mDo Not Reimplement Distributed Consensus Algorithms
14mDistributed Consensus in 15 Minutes!
01h 13mPaxos vs Raft: Have we reached consensus on distributed consensus?
