Modify an instance
This topic describes how to modify the configurations of an ApsaraDB RDS for PostgreSQL instance in the console. You can modify the edition, product type, storage type, instance type, storage capacity, minor engine version, parameters, and zone.
Prerequisites
-
The instance must use the subscription or pay-as-you-go billing method.
NoteYou cannot modify Serverless instances.
-
The instance must be in the Running state.
-
Your Alibaba Cloud account has no unpaid renewal orders.
Modifiable items and their impacts
Depending on the item that you modify, a transient connection may occur or the instance may restart during the switchover. During this process, most operations related to databases, accounts, and networks are unavailable. We recommend that you make this change during your specified maintenance window.
|
Item |
Description |
Impact |
|
Edition |
You can upgrade an instance from Basic Edition to High-availability Edition, or from Basic or High-availability Edition to Cluster Edition. |
A transient connection occurs. |
|
Product type |
You can switch the product type between Standard Edition and Yitian Edition. Note
|
A transient connection occurs. |
|
Storage type |
You can change the storage type.
|
|
|
Instance type |
You can change the instance type. Note
|
|
|
Storage capacity |
You can increase or decrease the storage capacity.
Note
|
|
|
Minor engine version |
You can upgrade the minor engine version of the instance. |
A transient connection occurs. |
|
Parameters |
You can modify instance parameters. Some changes require a restart, while others take effect immediately. |
|
|
Zone |
You can change the zone and vSwitch of the instance. |
A transient connection occurs. |
Considerations
-
Basic Edition instances have only one database node and no secondary node for hot backup. This can lead to a long period of unavailability if the node unexpectedly fails or when you change specifications or upgrade the engine version. If your business requires high database availability, we recommend using other editions, such as High-availability Edition.
NoteWhether a specification change causes a transient connection depends on the item that you change. For more information, see the Impact column in Modifiable items and their impacts.
-
Depending on the item that you modify, a transient connection may occur or the instance may restart. During the modification, most operations related to databases, accounts, and networks are unavailable. We recommend making the change during the specified maintenance window. For more information about the impact of each modifiable item, see the Impact column in Modifiable items and their impacts.
-
Changing the instance configurations does not change the instance ID or endpoint.
-
A manual restart is not required after the configuration change.
-
If the target instance has read-only instances and you want to change the storage capacity, make sure that the storage capacity of each read-only instance is greater than or equal to that of the primary instance. We recommend that you perform the following steps:
-
To increase the storage capacity, first increase the storage capacity of the read-only instances. After they are all upgraded, increase the capacity of the primary instance.
-
To decrease the storage capacity, first decrease the storage capacity of the primary instance. After the primary instance is downgraded, decrease the storage capacity of the read-only instances.
-
-
If the target instance has read-only instances and you want to change the instance type, make sure that the instance type of read-only instances that use local SSDs is greater than or equal to that of the primary instance. For read-only instances that use cloud disks, make sure that their instance type is at least half of the instance type of the primary instance. We recommend that you perform the following steps:
-
To upgrade the instance type, first upgrade the instance types of the read-only instances. After the instance type of all read-only instances is upgraded, upgrade the instance type of the primary instance.
-
To downgrade the instance type, first downgrade the instance type of the primary instance. After the instance type of the primary instance is downgraded, downgrade the instance types of the read-only instances.
-
-
When you upgrade the instance type, ensure the vSwitch connected to the instance has at least two available IP addresses. Otherwise, the upgrade fails. You can check the number of available IP addresses for the target vSwitch in the VPC console. If the vSwitch does not have enough IP addresses, switch to a vSwitch with sufficient IP resources before you upgrade the instance type.
Procedure
-
Go to the Instances page. In the top navigation bar, select the instance's region, and then click the target instance's ID.
-
In the upper-right corner of the page, click Modify Instance.
-
(This step is required only for subscription instances.) In the Change Configurations dialog box, select a modification method and click Next.
-
Standard Modification: Use for any modification that does not decrease the instance type or storage capacity. You can also keep the same instance type and change only the minor engine version, parameters, and other instance configurations.
-
Downgrade: Reduce the instance type and storage capacity. You can also modify other configurations, such as the minor engine version and parameters.
-
-
Modify the instance configurations. For more information about the modifiable items, see Modifiable items and their impacts.
-
Select when to apply the configuration changes.
-
Execute Immediately: The switchover to the new specifications occurs immediately after the data migration is complete.
-
Switch Within Maintenance Window: You can schedule the switchover to occur during the specified maintenance window.
Note-
Instances that use cloud disks: If you only increase the storage capacity or change the ESSD storage type, there is no service interruption. The change is applied immediately. You do not need to select Switch Within Maintenance Window.
-
Instances that use local SSDs: We recommend that you select Switch Within Maintenance Window. If the host where the instance is located has sufficient storage space for the expansion, the upgrade occurs immediately without service interruption. If the storage space is insufficient, data migration is triggered. After the migration is complete, the switchover occurs at your selected time. Incremental data is synchronized during the migration.
-
-
On the Upgrade Instance page, confirm the instance configurations before and after the modification, read the terms of service, and then click Pay Now to complete the payment.
Warning-
You cannot cancel a modification order after you submit it. Evaluate your business requirements before you proceed.
-
To ensure a stable modification process, do not perform any DDL operations from the time you submit the order until the modification is complete.
-
Related APIs
|
API |
Description |
|
Change the instance type or storage capacity of an RDS instance. |