MongoDB has very little system dependencies as far as I know.
libcurl4 openssl liblzma5
And I guess these 3 have a few subdependencies.
If you don’t anticipate any incredible update on these, you should be safe I guess.
In doubt, run a full backup before you do anything. And you will perform your update/upgrade in a rolling manner on your replica set I guess so if you have a problem while doing this operation on the first secondary, it shouldn’t be too hard to fix the problem and your production environment won’t be impacted as long as the other secondary and primary are still up and running.
The basic update method with zero downtime is:
- shutdown one secondary
- update it
- restart it
- check it’s back in the replica set and the rs.status() is fine.
- repeat these operations for the second secondary node.
- force the primary to step down:
- the former primary is now a secondary and the new primary is one of the 2 secondaries.
- repeat the first 4 steps for the last node.
- your 3 nodes are now up-to-date.