All Products
Search
Document Center

ApsaraDB RDS:Configure a database proxy endpoint

Last Updated:Mar 28, 2026

After you enable the database proxy for an ApsaraDB RDS for MySQL instance, clients connect through a proxy endpoint. This topic explains endpoint types and how to add, modify, switch, and release proxy endpoints, including public endpoints.

Limitations

  • A single ApsaraDB RDS for MySQL instance supports 1 to 7 proxy endpoints. Enabling the database proxy creates one endpoint by default.

  • Each proxy endpoint supports one internal endpoint (virtual private cloud (VPC)) and one public endpoint.

  • You must keep at least one proxy endpoint. Releasing a proxy endpoint permanently removes its ID, internal endpoint, and public endpoint.

  • Switching the vSwitch for a proxy endpoint is supported only on cloud disk instances.

  • Classic network endpoints can no longer be created as of December 7, 2023. Existing classic network endpoints continue to work but cannot be restored once released.

Prerequisites

Before you begin, ensure that you have:

Endpoint types

Each proxy endpoint supports up to two addresses:

Endpoint address format

A proxy endpoint address uses the following structure. Using rm-*****.rwlb.cn-chengdu.rds.aliyuncs.com:3306 as an example:

SegmentDescriptionExample
rm-*****Customizable prefix. Must start with a lowercase letter, be 2–40 characters long, and contain only letters, digits, and hyphens (-).rm-bp1abc123
rwlbIdentifier for the read/write splitting proxy.rwlb
cn-chengduRegion where the instance is deployed.cn-hangzhou
rds.aliyuncs.comDomain name for the Alibaba Cloud RDS service.
3306Default port for MySQL. Configurable within the range 1000–5999 for public endpoints.3306

Add a proxy endpoint

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. At the top of the Connection Information section, click Add Database Proxy Endpoint.

  4. In the dialog box, configure the access policy for the endpoint, then click OK. For configuration details, see Configure an access policy for a database proxy endpoint.

Switch the vSwitch for a proxy endpoint

Important

Only cloud disk instances support this operation. Switching the vSwitch causes a transient disconnection of approximately 30 seconds for connections through the proxy endpoint. Connections through the primary or read-only instance endpoints are not affected. Perform this operation during off-peak hours, or temporarily route application traffic to the primary or read-only instance endpoint. Make sure your application has an automatic reconnection mechanism.

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. In the Connection Information section, under Network Information for the target proxy endpoint, click Switch vSwitch.

  4. In the dialog box, select a Target vSwitch and a Change Time, then click OK.

Modify a proxy endpoint address or port

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. In the Connection Information section, click the image.png icon next to the target proxy endpoint.

  4. In the dialog box, set the connection address prefix and Port, then click OK.

If you upgraded from a shared proxy to a dedicated proxy, the suffix of the proxy endpoint changes the first time you modify it.

Release a proxy endpoint

Releasing a proxy endpoint permanently removes its ID, internal endpoint, and public endpoint. You must keep at least one proxy endpoint.
  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. Click Delete Connection next to the target proxy endpoint. In the dialog box, click OK.

Manage public endpoints

Each proxy endpoint supports one public endpoint. When requesting a public endpoint, the prefix must start with a lowercase letter, be 2–40 characters long, and contain only letters, digits, and hyphens (-). The port must be in the range 1000–5999.

Request a public endpoint

You can request a public endpoint from either the Database Proxy page or the Database Connection page.

From the Database Proxy page:

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. In the Connection Information section, find the target proxy endpoint. In the Public Endpoint/Port column, click Request Public Endpoint.

  4. Set the public endpoint prefix and Port, then click OK.

From the Database Connection page:

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Connection.

  3. In the Database Proxy Endpoint section, click Apply for Public Endpoint. Set the prefix and Port, then click OK.

Release a public endpoint

You can release a public endpoint from either the Database Proxy page or the Database Connection page.

From the Database Proxy page:

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Proxy.

  3. Next to the public endpoint you want to release, click Release Public Endpoint. In the dialog box, click OK.

From the Database Connection page:

  1. Go to the RDS Instances page. Select a region, then click the ID of the target instance.

  2. In the left navigation pane, click Database Connection.

  3. In the Database Proxy Connection section, next to the public endpoint you want to release, click Release Public Endpoint. In the dialog box, click OK.

What's next

API reference

APIDescription
DescribeDBProxyQueries database proxy details for an RDS instance.
DescribeDBProxyEndpointQueries proxy endpoint information for an RDS instance.
ModifyDBProxyEndpointModifies proxy endpoint settings for an RDS instance.
CreateDBProxyEndpointAddressCreates an address for a database proxy endpoint.
ModifyDBProxyEndpointAddressModifies an address of a database proxy endpoint.
DeleteDBProxyEndpointAddressDeletes an address of a database proxy endpoint.