Mongo Atlas Cluster - M40 - Do I need to stop my application when upgrading from V5 to V7

I’m using a Mongo Atlas Cluster - M40 -

Do I need to stop my application when upgrading from V5 to V7 to make sure no data loss in the upgrade process?

If my application still run normally at that upgrade time? Can my new data be saved to MongoDB normally? Thank you.

Hello, welcome to the MongoDB community.

You don’t need to stop the application to upgrade the version, because MongoDB uses the rolling up strategy, doing it first on the secondary nodes and then on the primary, performing a failover.

Two points:

First, make sure that your application has retryReads and writes configured in the connection string so that when a node fails over or is upgraded, there are no errors and instead your app will retry.

Another point you need to evaluate is the compatibility of your connection driver with the features that the cluster will have in that version. There may be commands or operators that have been deprecated in the meantime that you use in the application and this may cause problems for you. If you ensure this, I don’t see any more problems with your upgrade =D

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.