All Products
Search
Document Center

ApsaraDB RDS:View and manage instance endpoints and ports

Last Updated:Mar 28, 2026

ApsaraDB RDS for MySQL instances expose several endpoint types depending on the edition. This topic explains what each endpoint does and how to view, create, or modify endpoints in the console.

Endpoint types

The available endpoint types depend on your RDS instance edition.

Basic Edition and High-availability Edition

Endpoint typeWhat you can doNotes
Internal endpointConnect from resources within the same Virtual Private Cloud (VPC), such as an ECS instance, with low latencyAuto-generated at instance creation
Public endpointConnect from the InternetMust be applied for manually
Database proxy endpointConnect with read/write splitting enabled, reducing the load on the primary instanceSupported on High-availability Edition only (not Basic Edition). Use this endpoint when the database proxy feature is enabled.

Cluster Edition

Endpoint typeWhat you can doNotes
Read/write endpointPerform read and write operations against the primary nodeOne per cluster. After a primary/secondary switchover, the endpoint routes to the new primary automatically — no application changes needed.
Read-only endpointRun read-only queries with automatic load balancing across secondary nodesUp to one per cluster. If a secondary node fails or is promoted to primary, the endpoint adjusts automatically.
Direct node connection endpointConnect to a specific node in the clusterUse for diagnostics or node-level tuning. Supports read/write for primary nodes and read-only for secondary nodes.
Database proxy endpointConnect through the general-purpose database proxy, with read/write splitting, transaction splitting, or connection pool managementEnabled by default for Cluster Edition. Can be configured as read/write or read-only.

Basic Edition and High-availability Edition

View endpoints and ports

  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

  2. On the Basic Information page, click View Details in the Basic Information section.

The public endpoint appears only after you apply for a public endpoint.
image.png

Change the endpoint prefix or port

Important

If Secure Sockets Layer (SSL) encryption is enabled for the endpoint you want to change, disable SSL encryption first. Disabling SSL causes the RDS instance to restart — perform this during off-peak hours.

  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

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

  3. Click Modify Connection Address.

    image

  4. In the dialog box, set the prefix and port number for the internal or public endpoint, then click OK.

The prefix must be globally unique. It cannot duplicate an existing endpoint prefix. The prefix must start with a lowercase letter, end with a lowercase letter or digit, contain only lowercase letters, digits, and hyphens (-), be at least 8 characters long, and the total connection address (prefix + suffix) must not exceed 63 characters.

Cluster Edition

Read/write endpoint

After a Cluster Edition instance is created, the read/write endpoint's internal endpoint is automatically generated. Apply for a public endpoint if needed.

  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

  2. On the Basic Information page, in the Instance Topology Management > Database Connection section:

    • View: Hover over the read/write connection box to see the endpoint details.

    • Modify or apply for a public endpoint: Click Edit. In the dialog box, you can Change Endpoint, Change VPC, or Apply for a public endpoint.

    image

Read-only endpoint

Create, view, or delete the read-only endpoint

Creating or deleting the read-only endpoint does not affect the read/write endpoint.
Deleting the read-only endpoint releases all its internal and public endpoints and interrupts active connections on those endpoints.
Each cluster supports up to one read-only endpoint, which load-balances across all secondary nodes assigned to it.
  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

  2. On the Basic Information page, in the Instance Topology Management > Database Connection section:

    • Add an endpoint: Click Add Endpoint. In the dialog box, enter the internal endpoint prefix, port, VPC, and vSwitch. Select the secondary nodes to include, then click OK.

    • Delete: In the read-only connection box, click Delete, then confirm.

  3. View: Hover over the read-only connection box to see the endpoint details.

    image

Adjust nodes and weights on the read-only endpoint

Adding nodes or adjusting weights: Existing connections are not affected. New connections use the updated node settings.
Removing nodes: At least one secondary node must remain. Connections on the removed node are interrupted for 30 to 120 seconds; other nodes are unaffected.
At least one secondary node must have a weight greater than 0.
Node settings apply to both the internal and public endpoints of the read-only endpoint.
  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

  2. On the Basic Information page, in the Instance Topology Management > Database Connection section, click Edit in the read-only connection box.

    • Add nodes and adjust weights: Select the secondary nodes to add and click the 加入 icon. Adjust the weights, then click OK.

    • Remove nodes: Select the nodes to remove, click the 删除 icon, then click OK.

    image

    image

Direct node connection endpoint

  1. Go to the Instances page. In the top navigation bar, select the region where your RDS instance resides. Click the instance ID.

  2. On the Basic Information page, in the Instance Topology Management > Database Nodes section:

    • Create: In the target node section, click Create Node Endpoint. Configure the internal endpoint settings, then click OK.

    • View, modify, or apply for a public endpoint: Click Manage. In the dialog box, you can Change Endpoint, Change VPC, or Apply for a public endpoint.

    image

FAQ

After I change an endpoint or port, do I need to update my application?

Yes. Update the endpoint or port in your application's connection configuration. Until you do, the application cannot connect to the RDS instance.

Does changing an endpoint require a restart?

No. Changes take effect immediately without restarting the instance.

Can I reuse a released endpoint for another RDS instance?

Yes. Once released, the endpoint prefix becomes available for use by any RDS instance.

Does a primary/secondary switchover change the endpoints?

No. After a switchover, the original secondary becomes the new primary, and the endpoints continue to point to it automatically. Your application does not need to be updated.

Why am I getting `InvalidConnectionString.Malformed` when modifying a connection address?

Two common causes:

  • SSL is enabled. Disable SSL encryption before modifying the connection address.

  • The prefix does not meet format requirements. The prefix must start with a lowercase letter, end with a lowercase letter or digit, contain only lowercase letters, digits, and hyphens (-), be at least 8 characters long, and the total connection address must not exceed 63 characters.

Why do CPU and memory usage differ across nodes in an RDS cluster even when node weights are equal?

Server Load Balancer (SLB) distributes connections evenly by weight, but the CPU and memory consumed per connection vary depending on the queries being run.

Does adjusting node weights affect existing connections?

No. Only new connections are routed according to the updated weights. Existing connections remain on their current nodes.

Can I set all node weights to 0?

No. At least one node must have a weight greater than 0.

Can I remove all nodes from the read-only endpoint?

No. At least one secondary node must remain assigned to the read-only endpoint.

API reference

API operationDescription
CreateDBInstanceEndpointCreate an endpoint for a Cluster Edition instance
DeleteDBInstanceEndpointDelete an endpoint of a Cluster Edition instance
ModifyDBInstanceEndpointAddressModify an endpoint of a Cluster Edition instance

References