I need some guidance on upgrading our MongoDB cluster from version 5 to version 7.
Currently, we are running an M10 cluster with MongoDB version 5. Our goal is to update it to version 7 while minimizing downtime and ensuring data integrity throughout the process.
Our initial plan involves the following steps:
- Take a dump from our existing cluster running version 5.
- Create a new cluster with MongoDB version 5 and restore the dump into it.
- Proceed with the incremental upgrade process, moving from version 5 to version 6 and then to version 7.
- Finally making this newly created cluster as the primary cluster and deploy the app with updated connection string.
- In case of any issues or complications during the upgrade, we will have the original cluster (version 5) available as a fallback option to minimize downtime and ensure data safety.
While this plan seems feasible to us, we would greatly appreciate your insights and recommendations on whether it is the most efficient approach for upgrading our MongoDB cluster. Specifically, we are considering the following alternatives:
- Directly restoring the dump onto an upgraded cluster (version 6 or 7) to potentially save downtime during the upgrade from version 5 to 7.
- Exploring any other strategies or plans that might offer improved efficiency or minimize risks during the upgrade process.
Your expertise and advice would be immensely valuable to us as we navigate this upgrade journey. We are open to any suggestions, best practices, or experiences you can share to ensure a smooth and successful transition to MongoDB version 7.