Migrate MongoDB from Version 6.0.X to 8.0.X

To upgrade MongoDB in the ad-db container to version 7.0 and then to 8.0, you must first be running MongoDB version 6.0. MongoDB supports only successive version upgrades.

Upgrade MongoDB using Accelo Binary

  1. Download and load all required container images if you are working in an air-gapped network environment.
Bash
Copy
  1. Run the following command to upgrade MongoDB to version 8.0.8.
Bash
Copy

Expected output:

Bash
Copy

To verify the MongoDB version, exec into the ad-db container and run the following command:

Bash
Copy

This command returns the currently installed MongoDB version.

Upgrade MongoDB Manually

If you are working in an air-gapped network, download and manually load all required container images.

Bash
Copy

Instead of using the image 191579300362.dkr.ecr.us-east-1.amazonaws.com/acceldata/ad-database:migrate-8.0.8, you can use the default ad-database image provided with the Pulse v3.8.X release.

The default MongoDB version bundled with Pulse v3.8.X is 8.0.X.

Upgrade MongoDB from Version 6.0.x to 7.0.x

  1. Retag the version 7.0.19 to pulse_version.
Bash
Copy
  1. Restart the ad-db service.
Bash
Copy
  1. Exec into the ad-db container.
Bash
Copy
  1. Exec into the mongo shell.
Bash
Copy
  1. Set the compatibility version to 7.0.
Bash
Copy

Expected Output:

Bash
Copy
  1. Exit out of the MongoDB shell.
Bash
Copy
  1. Exit out of the ad-db container.
Bash
Copy

Upgrade MongoDB from Version 7.0.x to 8.0.x

  1. Retag the version 8.0.8 to pulse_version.
Bash
Copy

If you are using the MongoDB image bundled with Pulse v3.8.X, replace the migrate-8.0.8 image with the Pulse version you are upgrading to. The command looks as below.

Bash
Copy

Replace <pulse-version> with the actual version number, such as 3.8.0.

  1. Restart the ad-db service.
Bash
Copy
  1. Exec into the ad-db container.
Bash
Copy
  1. Exec into the MongoDB shell.
Bash
Copy
  1. Set the compatibility version to 8.0
Bash
Copy

Expected Output:

Bash
Copy
  1. Exit out of the MongoDB shell.
Bash
Copy
  1. Exit out of the ad-db container.
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard