Replica Set High Availability

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.