We have a few environments with MongoDB 3.0, these are standalone servers. These servers are already using WiredTiger Storage engine. I am trying to upgrade them to 4.2.
As per the upgrade documentation you can't go from 3.0 to 4.2 but have to make incremental upgrades from 3.0 to 3.2 and so on to 4.2.
As this is something that is going to be repeated on multiple env's I am trying to automate it where in a script does the upgrade but at certain points in the upgrade gives out diagnostic info that someone can look at and confirm that a step in the upgrade process has been successful.
Doing this on EC2 instances with Amazon Linux 2.
To test this out I did a manual upgrade from 3.0 to 3.2. The processes came up fine, I was able to connect to the db and query a collection and everything "seems" fine. Across various DB's the total size of the data is approx 2.3TB, and I was surprised that after the upgrade the DB came up in a few seconds.
I was looking at diagnostic commands to figure out if I can verify in the script that the upgrade happened without a hitch. (Other than the mongod process starting correctly). The only thing I could find was this. https://docs.mongodb.com/v3.2/reference/command/serverStatus/#asserts And am not sure if this is good enough.
So TL;DR; Can I programatically verify that the upgrade was successful by looking at any metadata from the DB itself.
Note: a tangential question, YAML is current preferred config file format, as it is supported even with 4.2 any issues continuing with it?