High Availability Proxy Configuration
Below are the necessary commands to configure the high availability proxy(ies) in the PostgreSQL Ecosystem:
- PgSmart Client and Agent installed.
- All high availability components installed, respecting the minimum requirements.
- High availability agent configured on all PostgreSQL instances.
In a high availability environment, it is 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 High Availability Environment Name. [Default: pgsys-producao]
- Instructions
- Video
Instance Configuration (configure all PostgreSQL instances that are part of the High Availability Environment):
- 
Enter the server identification nameof PostgreSQL Instance [1].
- 
Enter the IP addressfor accessing PostgreSQL Instance [1].
- 
Enter the portfor accessing PostgreSQL Instance [1]. [Default: 5432]
- 
Enter the Agent Portof High Availability Agent for PostgreSQL Instance [1]. [Default: 8008]
- 
Confirm whether you want to add another PostgreSQL instance. noteIt is possible to inform more than one PostgreSQL instance; simply confirm the need for additional inclusion. 
Connection Data Configuration
- Enter the portfor accessing PostgreSQL via the high availability proxy. [Default: 5432]
Service Activation
- 
Confirm to save the settings and start the high availability proxy service. noteTo test access to the High Availability environment through the proxy, use the command: 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 - Configuration Figure 1 - High Availability - Proxy - Configuration