Upgrade Percona for MongoDB v3.6.8 to v5.0.8-7

We are trying to upgrade from Percona Server for MongoDB 36 v3.6.8 to Percona Server for MongoDB v5.0.8-7.

Is there any documentation for the doing this upgrade? Will I need to do incremental upgrades to perform this upgrade?

Can I make backups of the databases and remove the old MongaDB and install the v50 server and import the databases?

Thank you.

Hello @srcrtx ,

Generally speaking it is necessary to do incremental upgrades between major versions: 3.6 → 4.0 → 4.2 → 4.4 ->5.0. Skipping some major versions (like upgrading 3.6 → 5.0) is not supported.
On each step you need to do backup to be able to revert to working setup in case of failure.
Percona has these documents on upgrade process:
Upgrading from Percona Server for MongoDB 3.6 to 4.0
Upgrade from 4.0 to 4.2
Upgrade from 4.2 to 4.4
Upgrade from 4.4 to 5.0

As already suggested, the incremental upgrade procedure is the one strongly recommended.

Just to add some more info: it is possible to use mongoexport and mongoimport to perfom the upgrade skipping major versions, but it’s not recommended.
The solution is similar to mongodump / mongorestore but instead of using binary files (BSON), you are using plain text JSON files.
It’s lot slower than mongodump / mongorestore and you are not saving the metadata so you will have to recreate the indexes manually. Mongodump/mongorestore is faster and it’s supposed to work only from a major versione to the next one.

So, in the end, use the incremental upgrades.