This topic describes how to manage the dedicated proxy endpoints of an ApsaraDB RDS for MySQL instance. After you enable the dedicated proxy service, a default dedicated proxy endpoint is generated. The read/write splitting feature is bound to this endpoint. You can create, modify, or delete a dedicated proxy endpoint.

Prerequisites

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

Network types

Dedicated proxy endpoints come in three network types: Internal (VPC), Internal (Classic Network), and Public.

When you enable the dedicated proxy service, you can retain the default network type. After the default dedicated proxy endpoint is generated, you can create other dedicated proxy endpoints. The available network types vary based on the instance configuration.

Instance configuration Network type of the default dedicated proxy endpoint Network type of a new dedicated proxy endpoint
Standard or enhanced SSDs (VPC) Internal (VPC) Public
Enhanced SSDs (VPC)
Local SSDs (VPC)

Internal (VPC)

Public

Internal (VPC)

Internal (Classic Network)

Public

Local SSDs (classic network)

Internal (Classic Network)

Public

Internal (Classic Network)

Public

Note On the same RDS instance, each dedicated proxy endpoint must have a unique network type that is specified by the Endpoint Type parameter. For example, only one dedicated proxy endpoint of the Internal (VPC) network type is allowed.

Create a dedicated proxy endpoint

The default dedicated proxy endpoint is generated when you enable the dedicated proxy service. For more information, see Enable the dedicated proxy service for an ApsaraDB RDS for MySQL instance. You can also create other dedicated proxy endpoints.

  1. Go to the Database Proxy page.
    1. Log on to the ApsaraDB for RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
      选择地域
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Database Proxy.
  2. In the Endpoint section of the Proxy Service tab, click Create Endpoint.
    Create Endpoint button
  3. In the dialog box that appears, specify the prefix, port number, and network type of the dedicated proxy endpoint that you want to create. Then, click OK.
    Note
    • Each dedicated proxy endpoint on your RDS instance must have a unique network type that is specified by the Endpoint Type parameter.
    • The prefix of a dedicated proxy endpoint must be 1 to 40 characters in length. It can contain letters, digits, and hyphens (-). It must start with a lowercase letter.
    • The port number must be within the range of 1000 to 5999.

Change a dedicated proxy endpoint or a port number

  1. Go to the Database Proxy page.
    1. Log on to the ApsaraDB for RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
      选择地域
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Database Proxy.
  2. Find the dedicated proxy endpoint or port number that you want to change, and then click Change Endpoint or Change Port. In the dialog box that appears, change the dedicated proxy endpoint or port number and click OK.
    Note
    • The prefix of a dedicated proxy endpoint must be 1 to 40 characters in length. It can contain letters, digits, and hyphens (-). It must start with a lowercase letter.
    • The port number must be within the range of 1000 to 5999.
    Change Endpoint button

Delete a dedicated proxy endpoint

Note
  • If your RDS instance uses standard or enhanced SSDs, you cannot delete the dedicated proxy endpoint of the Internal (VPC) network type.
  • If your RDS instance uses local SSDs, you must reserve at least one dedicated proxy endpoint.
  1. Go to the Database Proxy page.
    1. Log on to the ApsaraDB for RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
      选择地域
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Database Proxy.
  2. Find the dedicated proxy endpoint that you want to delete, and then click Delete. In the dialog box that appears, click OK.

Related operations

Operation Description
DescribeDBProxy Queries details about the dedicated proxies of an ApsaraDB RDS instance.
CreateDBProxyEndpointAddress Creates a dedicated proxy endpoint for an ApsaraDB RDS instance.
ModifyDBProxyEndpointAddress Modifies a dedicated proxy endpoint for an ApsaraDB RDS instance.
DeleteDBProxyEndpointAddress Deletes a dedicated proxy endpoint from an ApsaraDB RDS instance.