This topic describes how to adjust the number of dedicated proxies on an ApsaraDB RDS for MySQL instance based on monitoring data and business planning.

Prerequisites

The dedicated proxy service is enabled for your RDS instance. For more information, see Enable the dedicated proxy of an ApsaraDB RDS for MySQL instance.

Precautions

The adjustment causes a transient connection error on your application. Make sure that your application is configured to automatically reconnect to your RDS instance.

Procedure

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Proxy.
  3. In the Proxy Instance section of the Proxy Service tab, modify the number to the right of the Instances Associated parameter and then click Apply to the right of the Adjustment Plan parameter
    Note We recommend that you specify the number of dedicated proxies as the rounded-up integer of the total number of CPU cores for your RDS instance and its read-only RDS instances divided by 8. A maximum of 60 dedicated proxies are supported.

    For example, if your RDS instance has eight CPU cores and its read-only RDS instances have four CPU cores, the recommended number of dedicated proxies is 2 based on the following calculation: (8 + 4)/8 = 1.5 (rounded up to 2).

    Adjust the number of dedicated proxies
  4. Set the Applied At parameter and click OK.
    Configure Proxy Resources dialog box

Related operations

Operation Description
ModifyDBProxyInstance Modifies the number of dedicated proxies on an ApsaraDB RDS instance.
DescribeDBProxy Queries details about the dedicated proxies of an ApsaraDB RDS instance.