Currently, I am using mongo 4.0 MMapV1 in the environment. The setup is in PSA architecture. As Mongo 4.0 will be EoLed in April 2022, so upgrading the setup to mongo 4.2. I have tried to upgrade the setup from Mongo 4.0 MMapV1 to 4.2 Mongo wiredtiger in the test environment. Could not observe any issues. Wanted to upgrade in a production environment now from mongo 4.0 MMapV1 to 4.2 wiredtiger.
Followed below steps for upgrade:
The system has One Primary, One Secondary, and one arbiter
All are running in 4.0 MMAPV1
First Converted Secondary and arbiter to 4.2 in wiredTiger
Moved secondary to Primary, then converted old Primary to 4.2 WiredTiger.
Before upgrading in a production environment, I wanted to get suggestions from the team.
- As mongo 4.2 does not support MMapV1, Before upgrade Am I required to move replicasets from mongo 4.0 MMapV1 to Mongo 4.0 wiredtiger? Is it mandatory?
- Is upgrading from Mongo 4.0 MMapV1 to Mongo 4.2 wiredtiger the correct way?
- Is it really required to change the storage engine from MMapV1 to wiredtiger on Mongo 4.0, then upgrade from 4.0 wiredtiger to 4.2 wiredtiger?
- Tuning of parameters required for changing storage engine from MMapV1 to Wiredtiger.
Please provide inputs.