Before upgrading the major database version, determine which versions your instance can upgrade to based on its architecture and current version, and review the compatibility changes for each version.
Supported upgrade paths
-
You can upgrade the major version of a database in the ApsaraDB for MongoDB console. However, the available target versions vary based on the instance's architecture, instance type, and current version. The details are as follows:
Architecture
Instance type
Current major version
Available upgrade versions
Standalone architecture
General-purpose with cloud disk
MongoDB 4.0
No higher major version is available for upgrade.
General-purpose with cloud disk
MongoDB 3.4
Supports upgrade to MongoDB 4.0.
Replica set architecture
-
General-purpose with cloud disk
-
Dedicated with cloud disk
MongoDB 8.0
MongoDB 8.3
MongoDB 7.0
MongoDB 8.0
MongoDB 6.0
MongoDB 7.0
MongoDB 5.0
MongoDB 6.0
MongoDB 4.4
MongoDB 5.0
When you upgrade an instance from v4.4 to v5.0, the default writeConcern changes from
{w:1}to{w:majority}. This may cause a decrease in write performance and an increase in write latency. Confirm this impact is acceptable before you upgrade.-
General-purpose with local disk
-
Dedicated with local disk
-
Dedicated Physical Server
MongoDB 4.2
In-place upgrade is not supported.
To upgrade the major version, you can create a new instance and use it to replace the original instance.
MongoDB 4.0
MongoDB 4.2
MongoDB 3.4
-
MongoDB 4.0
-
MongoDB 4.2
MongoDB 3.2
MongoDB 3.0
Sharded cluster architecture
Dedicated with cloud disk
MongoDB 8.0
MongoDB 8.3 (Submit a ticket to apply)
MongoDB 7.0
MongoDB 8.0
MongoDB 6.0
MongoDB 7.0
MongoDB 5.0
MongoDB 6.0
MongoDB 4.4
MongoDB 5.0
When you upgrade an instance from v4.4 to v5.0, the default writeConcern changes from
{w:1}to{w:majority}. This may cause a decrease in write performance and an increase in write latency. Confirm this impact is acceptable before you upgrade.-
General-purpose with local disk
-
Dedicated with local disk
-
Dedicated Physical Server
MongoDB 4.2
In-place upgrade is not supported.
To upgrade the major version, you can create a new instance and use it to replace the original instance.
MongoDB 4.0
MongoDB 4.2
MongoDB 3.4
-
MongoDB 4.0
-
MongoDB 4.2
MongoDB 3.2
MongoDB 3.0
-
-
If you need to upgrade the major version across different architectures or storage types, first create an instance with the target major version and then use Data Transmission Service (DTS) to migrate data from the source to the new instance.
See the following topics for data migration instructions:
Compatibility changes between major versions
Review the compatibility changes for each major database version before upgrading:
-
The instance must be Running to upgrade its major database version. For instructions, see Upgrade database version.
-
Downgrading after a major version upgrade is not supported.
-
MongoDB 4.0 and later are compatible with MongoDB 3.6 features. To use MongoDB 3.6 features, upgrade to MongoDB 4.0 or later.
-
These compatibility notes cover only changes in the ApsaraDB for MongoDB kernel, not changes in instance management features.
|
Major database version |
Compatibility changes |
|
MongoDB 8.3 |
For more information about MongoDB 8.3, see Compatibility Changes in MongoDB 8.3. |
|
MongoDB 8.0 |
For more information about MongoDB 8.0, see Compatibility Changes in MongoDB 8.0. |
|
MongoDB 7.0 |
For more information about MongoDB 7.0, see Compatibility Changes in MongoDB 7.0. |
|
MongoDB 6.0 |
For more information about MongoDB 6.0, see Compatibility Changes in MongoDB 6.0. |
|
MongoDB 5.0 |
For more information about MongoDB 5.0, see Compatibility Changes in MongoDB 5.0. |
|
MongoDB 4.4 |
For more information about MongoDB 4.4, see Compatibility Changes in MongoDB 4.4. |
|
MongoDB 4.2 |
For more information about MongoDB 4.2, see MongoDB 4.2 compatibility update notes. |
|
MongoDB 4.0 |
For more information about MongoDB 4.0, see MongoDB 4.0 compatibility update notes. |
|
MongoDB 3.6 |
For more information about MongoDB 3.6, see MongoDB 3.6 compatibility update notes. |
|
MongoDB 3.4 |
For more information about MongoDB 3.4, see MongoDB 3.4 compatibility changes. |
Related APIs
|
Interface |
Description |
|
Upgrades the major database version of an ApsaraDB for MongoDB instance. |