Seeking Advice on Upgrading MongoDB Cluster from Version 5 to 7

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:

  1. Take a dump from our existing cluster running version 5.
  2. Create a new cluster with MongoDB version 5 and restore the dump into it.
  3. Proceed with the incremental upgrade process, moving from version 5 to version 6 and then to version 7.
  4. Finally making this newly created cluster as the primary cluster and deploy the app with updated connection string.
  5. 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:

  1. Directly restoring the dump onto an upgraded cluster (version 6 or 7) to potentially save downtime during the upgrade from version 5 to 7.
  2. 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.

1 Like