When you use AnalyticDB for PostgreSQL, the data size and computing workloads may surge and the data processing speed may hit a bottleneck due to insufficient computing resources such as CPU, memory, disk space, and data processing nodes. To scale instances, AnalyticDB for PostgreSQL allows you to change instance specifications in the console. This topic describes how to scale an AnalyticDB for PostgreSQL instance in Serverless mode within seconds.
Prerequisites
An AnalyticDB for PostgreSQL instance is created. For more information, see Create an instance.
Usage notes
If you create indexes for an AnalyticDB for PostgreSQL instance in Serverless mode, the scaling performance of the instance is affected. The amount of time required for scaling is proportional to the data volume of indexes.
Add compute nodes
- Log on to the AnalyticDB for PostgreSQL console.
- In the upper-left corner of the console, select a region.
Find the instance that you want to manage and choose in the Actions column.
In the Info dialog box, select I am aware of the impact of this operation and agree to continue it. and click OK.
NoteAfter you submit the specification change request, the SQL statement that is being executed will be interrupted and cannot be resumed even after the change is made.
On the Upgrade/Downgrade page, set the Nodes parameter to 4, read and select the Terms of Service, and then click Buy Now.
NoteSelect the number of compute nodes based on your business requirements.
Return to the Basic Information page and wait for the instance to change to the Running state.
Remove compute nodes
- Log on to the AnalyticDB for PostgreSQL console.
- In the upper-left corner of the console, select a region.
Find the instance that you want to manage and choose in the Actions column.
In the Info dialog box, select I am aware of the impact of this operation and agree to continue it. and click OK.
NoteAfter you submit the specification change request, the SQL statement that is being executed will be interrupted and cannot be resumed even after the change is made.
On the Upgrade/Downgrade page, set the Nodes parameter to 2, read and select the Terms of Service, and then click Buy Now.
NoteSelect the number of compute nodes based on your business requirements.
Return to the Basic Information page and wait for the instance to change to the Running state.
References
For more information about instance scaling, see Change compute node configurations.