Modify instance specifications, storage space, and node count to match your workload requirements.
Configuration change plans
The following table lists configuration change plans and supported changes for each instance type.
|
Configuration change plan |
Billing method |
Change type |
Supported changes |
|
Subscription |
Upgrade |
Upgrade the instance Specifications and Storage space. |
|
|
Downgrade |
Downgrade the instance Specifications. |
||
|
Pay-as-you-go |
|
Modify the instance Specifications and Storage space. Note
|
|
|
Subscription |
Upgrade |
Modify the number of primary and secondary nodes and read-only nodes, the Specifications, and the Storage space. Note
|
|
|
Downgrade |
Modify the number of primary and secondary nodes, the number of read-only nodes, and the Specifications. |
||
|
Pay-as-you-go |
|
Modify the number of primary and secondary nodes, the number of read-only nodes, the Specifications, and the Storage space. Note
|
|
|
Subscription |
When adding Mongos nodes, you can configure their Specifications and Quantity. Note
A sharded cluster instance supports a maximum of 32 Mongos nodes by default. If a sharded cluster instance has 3 Mongos nodes, you can add a maximum of 29 Mongos nodes. |
||
|
When you add shard nodes, you can configure Specifications, Quantity to create, Storage space, and the number of read-only nodes. Note
|
|||
|
Modify the Specifications of one or more Mongos nodes. |
|||
|
Modify the Specifications, Storage space, and the number of read-only nodes for one or more shard nodes. Note
|
|||
|
Modify the Specifications and Storage space of ConfigServer nodes. Note
|
|||
|
Modify the configurations of multiple components and nodes in a batch |
Modify configurations of multiple components and nodes in a single task:
|
||
|
Pay-as-you-go |
When adding Mongos nodes, you can configure their Specifications and Quantity. Note
A sharded cluster instance supports a maximum of 32 Mongos nodes by default. If a sharded cluster instance has 3 Mongos nodes, you can add a maximum of 29 Mongos nodes. |
||
|
When you add shard nodes, you can configure the Specifications, Quantity, and Storage space. Note
|
|||
|
Modify the Specifications of one or more Mongos nodes. |
|||
|
Modify the Specifications and Storage space of one or more shard nodes. Note
|
|||
|
Modify the Specifications and Storage space of ConfigServer nodes. Note
|
|||
|
Modify the configurations of multiple components and nodes in a batch |
Modify configurations of multiple components and nodes in a single task:
|
||
|
Manually release Mongos or shard nodes. Note
|
Other scenarios and solutions
These scenarios require creating a new instance:
-
Downgrade the storage space of an instance or a shard node.
-
Increase the number of nodes for a standalone instance.
-
Change the architecture of an instance.
-
Change the storage engine from RocksDB or TerarkDB to WiredTiger.
To change the configuration in these scenarios:
-
Create a new instance. For instructions, see Create a standalone instance, Create a replica set instance, or Create a sharded cluster instance.
Note-
To decrease storage space: The storage space of the new instance must be greater than the used storage space of the original instance.
-
To change the number of nodes: Set the instance type of the new instance to ReplicaSet.
-
To change the instance architecture: Select the instance type for the target architecture. Service architecture.
-
You can also clone a backup to create a new instance: Restore data to a new instance by point in time or Restore data to a new instance from a backup point.
-
-
Migrate data from the original instance to the new instance. Data migration and synchronization.
-
After verifying the new instance works as expected, switch your workloads to it.
-
Optional: If the original instance is no longer needed, release the instance.
-
Subscription: Manual release is not supported.
-
Pay-as-you-go: Manually release the instance.
-
FAQ
Related topics
Supported versions, storage engines, and constraints: Versions and storage engines.
To upgrade the major database version: Upgrade the major database version.