How to upgrade Mongodb replica set 3.6 to 4.4 version

Hi Team,

Currently we have mongodb 3.6 with 3 servers(1 primary and 2 replicas), we would like to upgrade 3.6 to 4.4, Can we directly upgrade to 4.4 from 3.6 or we have to upgrade first to 4.0 → 4.2 → 4.4 ?

Could you please guide on this?

Hello @Srinivasa_Reddy1 ,

Welcome to The MongoDB Community Forums! :wave:

The recommended upgrade path is to do in-place upgrades through successive major releases of MongoDB.

Here is the recommended upgrade path:
3.6 → 4.0 → 4.2 → 4.4

This ensures that any potential compatibility issues with the intermediate versions are resolved before moving to the latest version. It is also advisable to thoroughly test the upgrade process in a test environment before attempting it in a production environment.

Please go through this thread which includes alternative approaches such as automation: Replace mongodb binaries all at once? - #3 by Stennie .

You can check release notes to make sure you are following the correct procedure and avoid any unintentional mishaps.


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