Replica Set High Availability
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
Replica sets use elections to support high availability.
- Replica Set Elections
- Elections occur when the primary becomes unavailable and the replica set members autonomously select a new primary.
- Rollbacks During Replica Set Failover
- A rollback reverts write operations on a former primary when the member rejoins the replica set after a failover.