An ApsaraDB for SelectDB instance supports both VPC and public endpoint connections. If your client is not in the same VPC as the instance, you must apply for a public endpoint to connect.
Usage notes
Applying for a public endpoint for an ApsaraDB for SelectDB instance binds a public endpoint to each cluster. This action then opens ports 8040 and 8060 for HTTP operations such as importing data with Stream Load and scraping metrics. An IP address whitelist controls access to this endpoint. To access a cluster using the public endpoint, you must add the IP address of your client to the IP address whitelist of the instance. For more information, see Configure an IP address whitelist.
When releasing a public endpoint, note the following:
-
After you release the public endpoint of an ApsaraDB for SelectDB instance, you can no longer connect to the instance by using that endpoint. Update the connection address in your client.
-
After you release a public endpoint, remove the corresponding public IP addresses or CIDR blocks from the IP address whitelist to maintain data security.
Apply for a public endpoint
-
Log on to the ApsaraDB for SelectDB console.
-
In the upper-left corner of the page, select the region where your instance is located.
-
On the Instances page, click the target Instance ID, and the Instance Details page appears.
-
In the Network Information section of the Instance Details page, click Apply for Public Endpoint.
-
In the Apply for Public Endpoint dialog box, click OK.
Release a public endpoint
-
Log on to the ApsaraDB for SelectDB console.
-
In the upper-left corner of the page, select the region where your instance is located.
-
On the Instances page, click the target Instance ID to go to the Instance Details page.
-
In the Network Information section of the Instance Details page, click Release Public IP Address.
-
In the Release Public IP Address dialog box, click OK.
Next steps
After you apply for a public endpoint, complete the following steps to connect to your instance:
-
Add the public IP address of your client or application server to the IP address whitelist of your ApsaraDB for SelectDB instance. For more information, see Configure an IP address whitelist.
NoteUsing a public endpoint to access an ApsaraDB for SelectDB instance generates public network traffic. Public network traffic for ApsaraDB for SelectDB instances is free of charge.
-
To connect to the instance, see Connect to an ApsaraDB for SelectDB instance by using a MySQL client.