All Products
Search
Document Center

ApsaraDB RDS:Adjust the number of dedicated proxy instances that are enabled on an ApsaraDB RDS for MySQL instance

Last Updated:Aug 18, 2023

This topic describes how to adjust the number of dedicated proxy instances that are enabled on an ApsaraDB RDS for MySQL instance based on the monitoring data of the instance and your business planning.

Prerequisites

Enable and configure the dedicated proxy feature for an ApsaraDB RDS for MySQL instance

Precautions

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

Procedure

  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 left-side navigation pane, click Database Proxy.

  3. In the Proxy Instance section of the Proxy tab, modify the number to the right of the Enabled Proxy Instances parameter and click Apply to the right of the parameter.

    Note

    We recommend that you specify the number of dedicated proxy instances as the rounded-up integer of the total number of cores for your RDS instance and its read-only RDS instances divided by 8. A maximum of 16 dedicated proxy instances are supported.

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

    Adjust the number of proxy instances
  4. Set the Applied At parameter and click OK.

    Set the number of proxy instances

Related operations

Operation

Description

ModifyDBProxyInstance

Modifies the number of dedicated proxy instances that are enabled on an ApsaraDB RDS instance.

DescribeDBProxy

Queries details about the dedicated proxy instances that are enabled on an ApsaraDB RDS instance.