1.Majority, the unifying concept
"Majority" means more than half of the replica set's voting members — a specific number computed from the set's configuration, not a vague idea of "most". It is the one number that write concern, elections, and majority read concern all key off, which is exactly why they interact safely with each other.
Key features
- For N voting members, majority is floor(N/2) + 1 — 2 of 3, 3 of 5, 4 of 7
- The same majority threshold governs write concern "majority", read concern "majority", and electing a new primary
- A replica set with an even number of voting members can still compute a majority, but is more prone to a split where neither side has one — part of why odd counts are preferred
- Because election and majority write concern share the same threshold, any two majorities within the same set are guaranteed to overlap by at least one member
- This overlap guarantee is the structural reason a majority-committed write survives any single-primary failure
Command
majority = floor(votingMembers / 2) + 1Majority = floor(votingMembers / 2) + 1, and the same threshold governs write concern, read concern, and elections — which is why any two majorities in the same set are guaranteed to overlap, and why that overlap is what protects a majority-committed write from being lost to a failover.