ApsaraDB RDS for MariaDB supports two types of endpoints: internal endpoints and public endpoints. By default, you are provided with an internal endpoint that is used to connect to the RDS instance over an internal network. If you want to connect to the RDS instance over the Internet, you must apply for a public endpoint.
Internal and public endpoints
Endpoint type | Description |
---|
Internal endpoint | - An internal endpoint is provided by default. You do not need to apply for this endpoint. In addition, you cannot release this endpoint. You can change the network type of the RDS instance.
- If your application is deployed on an Elastic Compute Service (ECS) instance that resides in the same region andhas the same network types as the RDS instance, the ECS and RDS instances can communicate over an internal network. You do not need to apply for a public endpoint for the RDS instance.
- For security and performance purposes, we recommend that you connect to the RDS instance by using the internal endpoint.
|
Public endpoint | - You must manually apply for a public endpoint. You can release this endpoint if it is no longer required.
- If you cannot connect to the RDS instance by using the internal endpoint, you must apply for a public endpoint. This includes the following scenarios:
- Connect to the RDS instance from an ECS instance that resides in a different region or has a different network types from the RDS instance.
- Connect to the RDS instance from a device outside Alibaba Cloud.
Important - You are not charged for applying for a public endpoint. You are also not charged for the traffic that is generated after you use the public endpoint to connect to your RDS instance over the Internet.
- If you use a public endpoint to connect to an RDS instance, data security is compromised. Proceed with caution.
- For faster transmission and higher security, we recommend that you migrate your application to an ECS instance that resides in the same region and has the same network type as the RDS instance. This way, you can connect to the RDS instance by using the internal endpoint.
|
Apply for or release a public endpoint
- Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
- In the left-side navigation pane, click Database Connection.
- Apply for or release a public endpoint.
- If you have not applied for a public endpoint, you can click Apply for Public Endpoint.
- If you have applied for a public endpoint, click Release Public Endpoint.
- In the message that appears, click OK.