All Products
Search
Document Center

ApsaraDB RDS:Modify proxy configuration

Last Updated:Oct 14, 2026

If your current database proxy configuration—including its proxy type, proxy specification, and deployment mode—does not meet your business requirements or results in over-provisioned resources, you can adjust it. This topic explains how to modify these settings for an ApsaraDB RDS for MySQL instance using the console or an API, and provides a formula to calculate the recommended specification for a single proxy node.

Prerequisites

The database proxy is enabled.

Considerations

  • Modifying the proxy type, proxy specification, or deployment mode causes a 30- to 120-second database proxy outage. Ensure your application has an automatic reconnection mechanism.

  • If you modify the proxy type or proxy specification multiple times in quick succession, the system retains only sessions from the configuration that was in place before the latest change.

  • You cannot migrate zones when you modify the proxy type or proxy specification. You can only add a zone (changing from deployment mode 3 to 1 or 2) or remove a zone (changing from deployment mode 1 or 2 to 3). For more information, see Proxy deployment architecture.

  • When you change from a dual-zone deployment (for example, Zone A + Zone B) to a single-zone deployment (Zone A), you must first delete the proxy endpoint in Zone B. For more information, see Configure database proxy endpoints.

  • The nearest access feature is supported only for deployment mode 1 of a dedicated proxy. If you change to a general-purpose proxy or another deployment mode, you must first disable the nearest access feature. For more information, see Configure nearest access.

  • Relationship between the proxy specification and the specification of a single proxy node: Proxy specification = Sum of the specifications of all proxy nodes.

    For example, consider a dedicated proxy deployed across two zones (Zone A and Zone B). Zone A has one 2-core proxy node, and Zone B has two 2-core proxy nodes. The total proxy specification is calculated as follows: Proxy specification = Specification of proxy nodes in Zone A + Specification of proxy nodes in Zone B = (2 cores × 1) + (2 cores × 2) = 2 cores + 4 cores = 6 cores.

  • Relationship between the number of proxy nodes and the proxy specification: Number of proxy nodes = Proxy specification / Unit proxy specification, where the unit proxy specification is fixed at 2 CPU cores.

    For example, if the proxy specification of the instance is 6 cores, the number of proxy nodes is 6 cores / 2 cores = 3.

Impact of deployment mode changes

ApsaraDB RDS for MySQL supports three deployment modes for its database proxy, and you can switch between them. Changing the deployment mode affects the number of zones and the total number of proxy nodes.

  • Deployment mode 1

    image

  • Deployment mode 2

    image

  • Deployment mode 3

    image

Deployment mode change

Zone change

Node count change

Deployment mode 1 to Deployment mode 2

Unchanged.

Decrease.

One proxy node is removed from Zone A and one from Zone B.

Deployment mode 1 to Deployment mode 3

One zone is removed. You can select the zone to retain. We recommend that you retain the zone where the primary node of the instance resides.

Decrease.

Two proxy nodes are removed from Zone B.

Deployment mode 2 to Deployment mode 1

Unchanged.

Increase.

One proxy node is added to Zone A and one to Zone B.

Deployment mode 2 to Deployment mode 3

One zone is removed. You can select the zone to retain. We recommend that you retain the zone where the primary node of the instance resides.

Unchanged.

One proxy node is added to Zone A and one is removed from Zone B.

Deployment mode 3 to Deployment mode 1

One zone is added.

Increase.

The number of proxy nodes in Zone A remains unchanged. Two proxy nodes are added to Zone B.

Deployment mode 3 to Deployment mode 2

One zone is added.

Unchanged.

One proxy node is removed from Zone A and one is added to Zone B.

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 Basic Information section, click Change Configurations.

  4. In the dialog box that appears, select Proxy Type, Proxy Specifications, and Change Time, and then click OK.

    Note
    • For more information about the differences between the general-purpose proxy and dedicated proxy, see Proxy types.

    • Use the following formula to calculate the recommended specification for a single proxy node:

      Proxy type

      High-availability instance

      Cluster instance

      general-purpose

      (Number of CPU cores of the primary instance + Total number of CPU cores of all its read-only instances) / 4, rounded up to the nearest integer.

      (Number of CPU cores of the primary node + Total number of CPU cores of all its secondary nodes) / 4, rounded up to the nearest integer.

      dedicated

      (Number of CPU cores of the primary instance + Total number of CPU cores of all its read-only instances) / 8, rounded up to the nearest integer.

      (Number of CPU cores of the primary node + Total number of CPU cores of all its secondary nodes) / 8, rounded up to the nearest integer.

      For example, consider an RDS High-availability Edition primary instance with 8 CPU cores and two read-only instances with 4 and 6 cores. If you select the dedicated proxy type, the recommended CPU cores for a single proxy node is 3. Calculation: (8 + 4 + 6) / 8 = 2.25, rounded up to 3.

Related APIs

API

Description

ModifyDBProxyInstance

Modifies the configuration of the database proxy for an instance.

DescribeDBProxy

Queries the details of the database proxy for an instance.