Help Center/
Document Database Service/
User Guide (Kuala Lumpur Region)/
Instance Management/
Changing the CPU or Memory of a Cluster DB Instance
Updated on 2022-08-17 GMT+08:00
Changing the CPU or Memory of a Cluster DB Instance
Scenarios
This section describes how to change the CPU or memory of a cluster instance.
![](https://support.huaweicloud.com/intl/en-us/my-kualalumpur-1-usermanual-dds/public_sys-resources/note_3.0-en-us.png)
- A DB instance cannot be deleted when you are changing its CPU or memory.
- Instances can be scaled up or down.
- When the CPU and memory specifications are changed, a primary/secondary switchover may occur once or twice and the database connection will be interrupted for up to 30s. You are advised to change the specifications during off-peak hours to reduce impacts and ensure that the service system of your client can reconnect to the database if the connection is interrupted.
Changing mongos
- Log in to the DDS console.
- On the Instance Management page, click the target cluster instance.
- In the Node Information area on the Basic Information page, click the mongos tab, locate the target mongos, and click Change Instance Class in the Operation column.
- On the displayed page, modify required parameters and click Submit.
- View the DB instance class change result.
- When the CPU or memory of a DB instance is being changed, the status displayed in the Status column is Changing instance class. This process takes about 10 minutes.
- In the upper right corner of the DB instance list, click
to refresh the list. The instance status changes to Available.
- In the Node Information area on the Basic Information page, click the mongos tab and view the new instance class.
Changing shard
- Log in to the DDS console.
- On the Instance Management page, click the target cluster instance.
- In the Node Information area on the Basic Information page, click the shard tab, locate the target shard, and click Change Instance Class in the Operation column.
- On the displayed page, modify required parameters and click Submit.
- View the DB instance class change result.
- When the CPU or memory of a DB instance is being changed, the status displayed in the Status column is Changing instance class. This process takes about 25 to 30 minutes.
- In the upper right corner of the DB instance list, click
to refresh the list. The instance status changes to Available.
- Go to the Basic Information page of the cluster instance you scaled up, click the shard tab in the Node Information area, and view the new instance class.
Parent topic: Instance Management
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot