Network Connection
This article introduces network connection solution.
1. Connection Options
Nodegroup offers two network connection options:
-
Classic Network (Public Network): The most straightforward way to connect to Nodegroup is via the public network. For security reasons, public network access is restricted by default and must be enabled manually. Access this option at
Nodegroup > Network
. -
Private Network (VPC): Each Nodegroup instance operates within an independent VPC network environment, ensuring high security. VPC network access is enabled by default, and endpoints can be created through the PrivateLink solution to connect to Nodegroup.
2. Steps to Create a VPC Endpoint Connection
The process for creating a VPC endpoint varies slightly across different cloud providers. For detailed steps, refer to the following document:
3. Enable the Connection
The Nodegroup endpoint service does not support automatic acceptance of endpoint connections. After creating an endpoint in step 2, its connection to the endpoint service will be pending. The endpoint can only connect to Nodegroup via VPC after Nodegroup approves the connection request.
Required information for connection activation includes 1) the connection name and 2) the terminal node ID. The approval process typically takes 1 to 2 minutes.
4. Use the Endpoint to Connect to the Nodegroup
Once the endpoint connection is successfully established, you can view the endpoint connection you created and obtain the connection information for accessing Nodegroup at Nodegroup > Network
.
Several tools and technologies within the Postgres ecosystem can connect to Nodegroup, including psql, pgAdmin, JDBC Driver, and others.
- PSQL Command:
- JDBC String:
Parameters
Parameter | Description | Value |
---|---|---|
HOST | Nodegroup Connection Domain Name or IP | Query directly on the Nodegroup details page. After successful approval of the terminal connection, the backend will automatically retrieve the IP address of the terminal node for convenient connection and usage. Log in to the cloud platform terminal node control console and navigate to the terminal node details page to obtain further information. |
PORT | Nodegroup Connection Port | The default value is 5432. Detailed information can be verified on the Nodegroup details page. |
ACCOUNTNAME | Login Account | |
PASSWORD | Login Password |
5. Delete the Endpoint Connection
If the endpoint is no longer needed to connect to Nodegroup, or if Nodegroup itself is no longer required, promptly remove the endpoint connection to sever its association with the Nodegroup endpoint service. To minimize costs, log in to the cloud platform's endpoint management console and delete the corresponding endpoint as soon as possible.