When your business faces predictable, short-term traffic spikes, such as during e-commerce sales promotions or online events, your database might experience performance bottlenecks due to insufficient computing resources. Permanently upgrading the specifications for these spikes can lead to resource waste after the traffic subsides. The temporary upgrade feature of PolarDB lets you temporarily increase the compute specifications (CPU and memory) of a subscription cluster for a specified period. The specifications automatically revert to their original state at a specified time, which helps you handle short-term business peaks.
Impact assessment of specification changes
Before you perform a temporary upgrade, assess its potential impact on your business and create a change plan.
Service impact
PolarDB cluster specification changes trigger node restarts, which cause transient connections and brief performance fluctuations. The impact depends on whether the cluster supports failover with hot standby and whether binary logging (Binlog) is enabled.
If the cluster does not support failover with hot standby, a transient connection interruption of about 20 to 30 seconds may occur during the specification change. Before the switch, make sure that your application has a reconnection mechanism.
If the cluster supports failover with hot standby, a transient connection interruption of about 5 to 10 seconds may occur during the specification change if Binlog is enabled. If Binlog is disabled, performance may drop to zero for 1 to 3 seconds, but connections are not interrupted and transactions do not break.
Change duration: The change task takes about 5 minutes per compute node. For example, changing two nodes takes about 10 minutes. The actual duration is affected by factors such as cluster workload and the number of databases and tables.
Data latency: During the change, data synchronization latency on read-only nodes may be longer than during normal operations.
Data security: Specification changes adjust only compute node resources and do not affect existing data in the cluster.
Restart order: When you change the specifications of the primary node and read-only nodes at the same time, the system restarts the read-only nodes first, and then the primary node. No primary/standby switchover occurs during this process.
Node specification limits
To ensure cluster stability and high availability, the following limits apply to the specifications of primary and read-only nodes:
At least one read-only node must have the same specifications as the primary node.
Read-only nodes with hot standby enabled must have the same specifications as the primary node.
The memory of a read-only node cannot be less than half the memory of the primary node.
The number of CPU cores for read-only nodes is subject to a minimum requirement. The rules are as follows:
CPU cores of the primary node
Minimum CPU cores for a read-only node
2
2
4
4
8
4
16
8
32
16
64
32
88
64
120
64
Multi-master Cluster (Limitless) Edition clusters are not subject to the preceding limits.
Other limits
During a temporary upgrade, you can perform only one more temporary upgrade.
During a temporary upgrade, you cannot manually downgrade specifications, add or remove nodes, temporarily add nodes, use automatic scaling, or unsubscribe from the cluster.
Applicability
Before you start, complete the following checks.
Billing method: The target cluster must be a Subscription cluster.
Cluster status: The target cluster must be in the Running state and have no other configuration change tasks in progress, such as adding or deleting nodes, or performing minor version upgrades.
Pending tasks: The cluster must not have any pending configuration change tasks, such as adding or deleting nodes, or changing configurations.
Service-linked role authorization: The AliyunServiceRoleForPolarDB service-linked role for PolarDB must be created under your Alibaba Cloud account.
Procedure
Log on to the PolarDB console. In the navigation pane on the left, click Clusters and select the region where the cluster is located.
Open the Change Configurations (Subscription) dialog box using one of the following methods:
Click Change Configurations in the Actions column of the target cluster.

Click the target cluster ID to go to the Basic Information page. In the Database Nodes section, click Change Configurations.

In the Change Configurations (Subscription) dialog box, select Temporary Upgrade and click OK.
On the Temporary Upgrade page, confirm the Current Configuration and Expiration Time, and set the following parameters:
Parameter
Description
Sub-series
Select the target specification edition, including General Specification and Dedicated Specification.
Node
Select the target specifications for the node to be upgraded (primary or read-only).
NoteMake sure one read-only node has the same specifications as the primary node. You can configure the specifications for other nodes.
Restore Point
Set a specific time when the system will automatically restore the specifications to the state before the upgrade.
NoteThe minimum duration is 1 hour and the maximum is 14 days. For periods longer than 14 days, use a manual specification change.
The restore time cannot be later than one day before the cluster's expiration date. For example, if the cluster expires on January 10, the latest restore time for a temporary upgrade is January 9.
This setting cannot be changed after it is set. If performance is insufficient and you need to extend the time, you can perform one more upgrade before the restore time is reached. The Restore Point set for the second upgrade cannot be earlier than the first.
Read the terms of service, click Buy Now, and complete the payment. After the payment is successful, the upgrade task starts.
Billing
The fee for a temporary upgrade is based on the price difference between the new and original specifications, multiplied by a premium coefficient of 1.5. The formula is as follows:
Fee for a temporary upgrade of a compute node for N days = (Monthly price of new specifications - Monthly price of original specifications) / 30 × 1.5 × N.
Related operations
Convert a temporary upgrade to a permanent upgrade
To keep the upgraded specifications permanently, or to perform operations such as adding or removing nodes, temporarily adding nodes, using automatic scaling, or unsubscribing from the cluster, you can convert the temporary upgrade to a permanent one. This prevents the specifications from being automatically downgraded at the restore time. You can perform the conversion in one of the following ways:
Manual conversion: During the temporary upgrade period, return to the change configuration page and perform a manual specification change to the current specifications.
NoteThis operation generates only a permanent billing order and does not cause a second service interruption.
Conversion by scaling out storage space: If you manually scale out the cluster's storage space during the temporary upgrade period, the system automatically converts the temporary compute specifications to permanent ones. This means that from the moment of the scale-out, you are billed at the subscription price of the new specifications. Carefully evaluate this change before you scale out the storage.
View the expiration time of a temporary upgrade
Go to the page. Search for the cluster by its ID, find the order of the Temporary Upgrade type, and click Details to view the order information.
Related API operations
API | Description |
Temporarily upgrades a PolarDB cluster. |


