Consensus & replication
How replicas agree on a leader and a log
Raft leader election
plannedTerms, randomized election timeouts, votes, split votes, log replication and commit index under partitions.
consensusreplication
MongoDB replica set
plannedPrimary election, oplog replication, write concern majority, and rollback after a failover.
consensusreplicationdurability