High Availability DCS Configuration
Below are the necessary commands to configure high availability in the PostgreSQL Ecosystem:
- PgSmart Client and Agent installed.
- All high availability components installed, respecting the minimum requirements.
- [Initialized] instance(initialize-web-db-instance).
- For a high availability environment, it is recommended to use dedicated servers for each component.
In a high availability environment, it is recommended to use dedicated servers exclusively for each component.
Non-interactive execution is disabled for this operation.
- Select the
PgSmart Agent
(or Register new Agent).
If a Distributed Configuration Store (DCS) configuration file already exists, two options will be presented:
- Adicionar Membro ao Cluster: Allows adding a member to the
cluster
. - Editar Configurações Existentes: Allows editing existing configurations.
If the option to Add a new member to the cluster
is selected:
- Instructions
- Video
2.1. Enter the name
of the new server.
2.2. Enter the IP address
of the new server for internal DCS communication.
2.3. Enter the port
of the new server for internal communication.
2.4. Confirm the addition of the member to the DCS.

If no configuration file exists in the repository or if "Editar Configurações Existentes" is selected:
- Instructions
- Video
Editing existing configurations will overwrite the current file in the Distributed Configuration Store.
3.1. Enter the High Availability Environment name
. [Default: pgsys-producao]
3.2. Identify the server
. [Default: current server]
3.3. Specify the network interface
to be used internally by the Distributed Configuration Store servers.
3.4. Specify the port
to be used internally by the Distributed Configuration Store servers. [Default: 2380]
3.5. Specify the network interface
to be used for client requests
to the Distributed Configuration Store.
3.6. Specify the port
to be used for client requests
to the Distributed Configuration Store (DCS).
3.7. Confirm if the Distributed Configuration Store already exists on other servers (if yes, inform for each: server name, IP address
for internal communication, and port).
3.8. Confirm saving the DCS configuration.
3.9. Confirm service initialization (restart).

If a DCS is already configured, PgSmart will request confirmation to replace the existing configurations with the new parameters.