Switch the MongoDB primary
Use a planned switchover before maintenance on the current writer or leader. Confirm healthy replicas, acceptable synchronization, available voting quorum and a recovery plan.
Submit and verify
- Open Lifecycle → DB Switchover.
- Review Leader Name and Leader Host.
- Enter Remarks and choose Switchover Now.
- Follow Activity.
- Verify one healthy new primary, the remaining members and application reconnection.
This dialog does not select a successor. The replica set elects a primary; verify which member becomes primary before the next maintenance step.
Writes can pause and in-flight transactions can fail during the transition. Agree application retries and the maintenance window.
Do not stop additional members while the transition is in progress. If leadership is unclear, preserve Activity and member observations and contact support before retrying.