ApsaraDB for ClickHouse supports internal endpoints for connections over virtual private clouds (VPCs) and public endpoints for connections over the Internet. If your client and an ApsaraDB for ClickHouse cluster are deployed in the same VPC, you can use the corresponding internal endpoint to connect to the client and the ApsaraDB for ClickHouse cluster. After the connection is successful, you can access the client and the ApsaraDB for ClickHouse cluster over the VPC. Otherwise, you need to apply for a public endpoint. This topic describes how to apply for a public endpoint for an ApsaraDB for ClickHouse cluster and release the public endpoint of an ApsaraDB for ClickHouse cluster in the ApsaraDB for ClickHouse console.
Precautions
Applying for a public endpoint requires the Classic Load Balancer (CLB) service, which incurs fees. Ensure your account has a sufficient balance. For more information, see Billing details about relevant services.
Apply for a public endpoint
Log on to the ApsaraDB for ClickHouse console.
In the top navigation bar, select the region where the cluster for which you want to apply for a public endpoint is deployed.
-
On the Clusters page, select the Instance list for your cluster type, and then click the ID of the target cluster.
-
On the Cluster Information page, in the network information section, click Apply for Public IP Address.
-
In the Apply for Public IP Address dialog box, click OK.
NoteAfter a public endpoint is generated, if you need to use the public endpoint to access ApsaraDB for ClickHouse, you must also add the IP address or IP address range of the client to the whitelist of ApsaraDB for ClickHouse. For more information, see Set a whitelist.
Release a public endpoint
Log on to the ApsaraDB for ClickHouse console.
In the top navigation bar, select the region where the cluster for which you want to release a public endpoint is deployed.
-
On the Clusters page, select the Instance list for your cluster type, and then click the ID of the target cluster.
-
On the Cluster Information page, in the Network Information section, click Release Public IP Address.
-
In the Release Public IP Address dialog box, click OK.
NoteAfter you release the public endpoint, you can no longer use it to access ApsaraDB for ClickHouse.