Configuration
Configuration Guide
INFRA primarily provides monitoring infrastructure. It is optional for PostgreSQL databases.
INFRA failures typically do not affect PostgreSQL cluster operation. Exceptions apply if you manually configure dependencies on INFRA DNS/NTP services.
One INFRA node is sufficient for most scenarios. For production HA, we recommend 2-3 INFRA nodes.
ETCD, which PostgreSQL HA requires, can share nodes with INFRA to use resources more efficiently.
More than 3 INFRA nodes provide little extra benefit. More ETCD nodes, such as 5, can improve DCS availability.
Configuration Examples
Add node IP addresses to the infra inventory group. Assign an INFRA instance number with infra_seq.
Default single INFRA node config:
During configuration, Pigsty replaces 10.10.10.10 with the current node’s primary IP address by default.
Run infra.yml to initialize the INFRA module on these nodes.
More Nodes
Two INFRA nodes config:
Three INFRA nodes config (with params):
INFRA High Availability
Most INFRA components have no state or share identical state. Thus, load balancing is the main HA requirement.
Use a Keepalived L2 VIP or HAProxy L4 load balancing for HA. We recommend an L2 VIP where nodes share an accessible L2 network.
Config example:
Set VIP-related params and modify service endpoints in infra_portal.
Nginx Configuration
See Nginx Parameter Config and Tutorial: Nginx.
Local Repo Configuration
DNS Configuration
See DNS Parameter Config and Tutorial: DNS.
NTP Configuration
See NTP Parameter Config.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)