MongoDB database migration
The migration workflow moves a managed deployment to replacement database servers. It uses member addition, replication, a controlled transition and retirement of the old members.
Prepare the change
Agree source and target servers, operating-system compatibility, capacity, routing, backups and a recovery plan with the database owner. Confirm sufficient licence capacity while old and new members coexist.
Keep the existing deployment healthy. A standalone may need plan conversion and additional members before migration.
Follow the UI workflow
- Open Lifecycle โ DB Migration to review the migration stages.
- Use Lifecycle โ Add DB Node to register and join the prepared replacement member through the engine's add-node form.
- Follow Activity and monitor replication until the replacement is synchronized.
- Use the project's DB Switchover or approved service-control operation for the agreed leadership transition. Confirm the actual new writer/leader before continuing.
- Verify application access to the new deployment.
- Use Lifecycle โ Delete DB Node for the exact retiring host, following the engine's removal prerequisites.
- Complete the final health and application checks.
Final checks
Confirm database connectivity, data consistency, healthy replication, intended roles and database availability. Check the current members and monitoring after cleanup.
Move one member at a time and respect voting/quorum and minimum-member restrictions. The new primary or leader must be observed and verified; a request alone does not guarantee a particular successor.
This procedure covers database-server replacement through the Broker. Arrange other migration requirements with DBaasNow before changing the deployment.