High Availability Proxy Configuration
Below are the necessary commands to configure the high availability proxy(ies) in the PostgreSQL Ecosystem:
- High availability agent configured on all PostgreSQL instances.
In a high availability environment, it's recommended to use servers dedicated exclusively to each component.
Non-interactive execution is disabled for this operation.
-
Select the
PgSmart Agent(or Register new Agent). -
Confirm if the High Availability Agent is already configured on all PostgreSQL instances.
-
Enter the
Name of the High Availability Environment. [Default: pgsys-producao]
- Instructions
- Video
Instance Configuration (configure all PostgreSQL instances that make up the High Availability Environment).
-
Enter the
Identification Name of the PostgreSQL Instance Server[1]. -
Enter the
IP Address for accessto the Postgresql instance [1]. -
Enter the
portfor access to the PostgreSQL instance [1] [Default: 5432]. -
Enter the
High Availability Agent Portof the PostgreSQL instance [1]. [Default: 8008] -
Confirm if you wish to inform another PostgreSQL instance.
noteYou can inform more than one PostgreSQL instance by confirming the need for new inclusion.
Connection Data Configuration
- Enter the
Port for accessing PostgreSQLvia the high availability proxy. [Default:5432]
Service Activation
-
Confirm to save the settings and initialize the high availability proxy service.
noteTo test access to the High Availability environment via proxy, use the command below:
Terminal inputpsql -U <HA agent user> -h <Proxy IP address> -p <PostgreSQL access port via proxy> postgresExample:
Terminal inputpsql -U patroni -h 192.168.200.135 -p 5432 postgres
Figure 1 - High Availability - Proxy - add