This topic describes how to change the configurations of a replica set instance. If a purchased replica set instance no longer suits your business requirements, you can change the configurations of the instance.
Billing
For more information, see Configuration change fees.
Limits
- If your instance has only Classic Network and VPC endpoints, you must apply for a public endpoint or release the classic network endpoint
for the instance before you can change the value of the Read-only Nodes parameter.
Note You can go to the Database Connections page to view the types of networks that are enabled.
- When you change the configurations of an instance, the storage capacity of the instance cannot be decreased. If you want to decrease the storage capacity of an instance, you can create another instance to replace the existing one. For more information, see Other configuration change scenarios and methods.
- When you change the configurations of an instance, the architecture or storage engine of the instance cannot be changed. For example, you cannot change a replica set instance into a sharded cluster one. If you require a different architecture or storage engine, you can create another instance to replace the existing one. For more information, see Other configuration change scenarios and methods.
Precautions
- The amount of time required to perform a configuration change depends on factors such as the network conditions, task queue state, and data volume. We recommend that you change the configurations of an instance during off-peak hours and make sure that your application is configured to automatically reconnect to the instance.
- If you scale up only the storage capacity of a general-purpose or dedicated instance that uses local disks and resides in a physical device that has sufficient resources, the scale-up is performed on the device without the need for cross-host migration or switchover. As such, the configuration change immediately takes effect regardless of the specified maintenance window and does not cause disconnections.
- If you scale up only the storage capacity of an instance that uses cloud disks, the configuration change immediately takes effect regardless of the specified maintenance window and does not cause disconnections.
- During a configuration change, you may experience one or two transient connections. Each transient connection lasts about 30 seconds. Switching Time specifies the time when you want to apply the configuration change. You can set the parameter to an off-peak time period to prevent interruptions to your business.
- Configuration changes do not cause data loss.
- If the minor version of an instance expires or is not included in the maintenance list, ApsaraDB for MongoDB automatically updates the minor version of the instance to the latest version when you perform the following operations. This ensures the performance and stability of the instance.
Procedure
Related API operations
Operation | Description |
---|---|
ModifyDBInstanceSpec | Changes the specifications or storage space of a standalone, replica set, or serverless instance. |