Version Upgrade of MongoDB from 3.2 to 7.x

I am working on 3.2 version and want to upgrade to 7.0 version.

  1. Is it possible to upgrade directly from 3.2 to 7.0 or have to follow gradual approach (3.2–>3.4–>----->7.0

  2. Is it possible to run MongoDB on 3 node cluster.?

  3. Is it possible to migrate the data backup directly from 3.2 to 7.0 version.?

  4. Is it possible to backup and restore only delta data from 3.2 version to 7.0.?

Hi @Anshu_Jha1 and welcome to the community!
In the forum there are a lot of topics about that, for example:

Best Regards

1 Like

Hi Anshu,

Short answer, except for Q2, is NO! There were many breaking changes along the way.

Apart from differences between version family 3 and 4, there have been many changes in the last few years, so much so that versions increase by 1 each year since 5.0

You need to catch up with lots of changes, but have to do it gradually if you want to migrate without no data loss. Get ready as you may lose indexes in the process.

But, it all depends on what aspects you were/are using in 3.2. If your data is entangled too deep to the features from that version, upgrading will be as painful. You may find the exact path in the documentations for each version and forum posts here as Fabio stated.

Just be warned though, you need lots of disk space as the process will need many backups.

For the Q2: We have a most basic 3-node cluster structure commonly referred to as PSS, which stand for Primary-Secondary-Secondary. Start with this link:
Replication - MongoDB Manual v7.0

Other configurations are possible, of course.

If you haven’t participated before, you may use MongoDB University courses (free):
Replication in MongoDB | MongoDB University

1 Like