Overview of Changing Instance Configuration
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
|
|||
|
Subscription |
Upgrade |
Upgrade the Computing Specifications and Storage space. |
|
|
Downgrade |
Downgrade the Computing Specifications. |
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, Create a sharded cluster instance, or Create a Serverless instance (New purchases are discontinued).
Note-
To downgrade 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 backup data to a new instance to a point in time or Restore backup 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: Unsubscribe from a subscription instance.
-
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.