To upgrade PingIntelligence, you must upgrade MongoDB from version 4.2 to 4.4 before proceeding to upgrade MongoDB to version 5.0.
- Upgrading MongoDB from version 4.2 to 5.0 is a multi-step process. Before performing any upgrades, it's crucial to back up your MongoDB data.
- Test that the upgraded system is working correctly with MongoDB 4.4 before upgrading to MongoDB 5.0.
- Stop all API Behavioral Security (ABS), API Publish, and Dashboard components.
- Ensure all replica set members are running MongoDB version 4.2.
- Ensure the 4.2 replica set has featureCompatibilityVersion
set to 4.2:
- Connect to each replica set member and check
featureCompatibilityVersion using the following
command:
db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
- To set or update featureCompatibilityVersion, run
the following command on the
primary:
db.adminCommand( { setFeatureCompatibilityVersion: "4.2" } )
- Connect to each replica set member and check
featureCompatibilityVersion using the following
command:
- Ensure that no replica set member is in
ROLLBACK
orRECOVERING
state by running the rs.status() command command in the primary. - Prior to upgrading a member of the replica set, confirm that the member was cleanly shut down.
- Make sure that the abs_rs.js file has actual MongoDB IPs
(instead of
localhost/127.0.0.1
) for the replica set members.
To upgrade MongoDB version 4.2 to 5.0:
Complete the steps in Migrating MongoDB from RHEL 7.9 to 8.