All Products
Search
Document Center

ApsaraDB RDS:Change the scaling policy of RCUs

Last Updated:Jan 19, 2024

This topic describes how to change the scaling policy of RDS Capacity Units (RCUs) for a serverless ApsaraDB RDS for PostgreSQL instance to reduce scaling operations. This helps improve the performance and availability of the serverless RDS instance. The default scaling policy of a serverless RDS instance is Do Not Execute Forcefully, and you can use the default scaling policy to avoid potential service interruptions. If a higher level of performance rather than continuous availability is required, you can manually change the scaling policy to Execute Forcefully.

Background information

The default scaling policy of a serverless RDS instance is Do Not Execute Forcefully. If the RCU scaling of the serverless RDS instance may cause a transient connection, the system ignores the RCU scaling request. This policy ensures instance availability but may adversely affect instance performance.

You can manually change the scaling policy to Execute Forcefully. If the system receives the RCU scaling request, the system forcefully scales RCUs regardless of the instance status or transient connections. This policy may cause a transient connection that lasts approximately 1 minute during the RCU scaling of a serverless RDS instance. This policy ensures instance performance but cannot ensure instance availability in extreme cases.

Note

Transient connections are countermeasures in emergency cases. The probability of transient connections is extremely low.

Usage notes

The operations in this topic apply only to serverless RDS instances. Make sure that the billing method of your RDS instance is serverless.

Impacts

  • The default scaling policy of a serverless RDS instance is Do Not Execute Forcefully. If the RCU scaling of the serverless RDS instance may cause a transient connection, the system ignores the RCU scaling request, and instance performance is adversely affected.

  • If you manually change the scaling policy to Execute Forcefully, transient connections may occur in extreme cases and affect your workloads.

Billing rules

N/A

Procedure

  • If no serverless RDS instances are created, you can configure the Scaling Policy parameter when you create a serverless RDS instance. For more information, see Create a serverless ApsaraDB RDS for PostgreSQL instance.

  • If a serverless RDS instance is created, you can perform the following steps to modify the Scaling Policy parameter:

    1. Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
    2. In the Configuration Information section, click Modify Scaling Settings.

    3. Click Advanced Settings. In the Scaling Policy drop-down list, select Do Not Execute Forcefully or Execute Forcefully based on your business requirements. Then, click OK in the lower part of the page.

References

  • If your serverless RDS instance fails to provide sufficient resources during peak hours or you want to reduce costs during off-peak hours, you can change the scaling range of RCUs for the serverless RDS instance. For more information, see Change the scaling range of RCUs.

  • If no connections are established to your serverless RDS instance, you can configure the serverless RDS instance to be automatically suspended to reduce costs. For more information, see Configure the automatic start and stop feature.

  • You can call the ModifyDBInstanceSpec operation to modify the scaling policy of a serverless RDS instance. The following table describes the required parameters.

    Parameter

    Description

    Example

    DBInstanceId

    The ID of the serverless instance for which you want to change the scaling range of RCUs.

    pgm-****

    PayType

    The billing method of the serverless instance. Set the value to Serverless.

    Serverless

    Direction

    The configuration change type of the instance. Set the value to Serverless.

    Serverless

    ServerlessConfiguration.SwitchForce

    Specifies whether to forcefully scale RCUs for the serverless RDS instance. Valid values:

    • true: forcefully scales RCUs.

    • false (default): does not forcefully scale RCUs.

    true