This topic describes how to view connection endpoints of the PolarDB cluster and introduces primary endpoints and private endpoints.

Procedure

  1. Log on to the PolarDB console.
  2. On the top of the page, select the region where the target cluster is deployed.
  3. Find the target cluster and click the cluster ID.
  4. In the Connection Information section, view the connection endpoints.

Primary endpoints

Type Description Supported network type
Primary endpoint A primary endpoint always connects to the primary node and supports read and write operations. If the primary node becomes faulty, the primary endpoint is automatically switched to the read-only node that is promoted to the primary node. VPC
Primary node endpoint (not recommended) The endpoint of the primary node. It is not recommended to connect directly to the primary node because the node is unavailable when it fails. VPC
Read-only node endpoint (not recommended) The endpoint of the read-only node. It is not recommended to connect directly to the read-only node because the node is unavailable when it fails. VPC

Private endpoints

Type Description Scenario
Private endpoint
  • PolarDB can achieve optimal performance when accessed through the private endpoint.
  • The private endpoint cannot be released.

For example:

  • If your ECS instance is located in the same VPC as the PolarDB cluster, then your ECS instance can access the PolarDB cluster through the private endpoint.
  • You can access the PolarDB cluster through the private endpoint by using DMS.

Next step

Connect to the cluster. For more information, see Connect to a PolarDB for PostgreSQL cluster.

Related operations

Operation Description
DescribeDBClusterEndpoints Queries the endpoint information of a specified PolarDB cluster.
CreateDBEndpointAddress Creates public-facing endpoints for a specified PolarDB cluster.
ModifyDBEndpointAddress Modifies the default cluster endpoint, custom cluster endpoint, primary endpoint, or private domain of a specified PolarDB cluster.
DeleteDBEndpointAddress Deletes an endpoint of a specified PolarDB cluster.