Configuration
Choose etcd cluster size based on requirements, provide reliable access.
ETCD is a distributed, reliable key-value store for critical system config data.
Pigsty uses etcd as DCS (Distributed Config Store), critical for PostgreSQL HA and automatic failover.
The ETCD module depends on NODE module and is required by PGSQL module. Install NODE module to manage nodes before installing ETCD.
Deploy ETCD cluster before any PGSQL cluster—patroni and vip-manager for PG HA rely on etcd for HA and L2 VIP binding to primary.
flowchart LR
subgraph PGSQL [PGSQL]
patroni[Patroni]
vip[VIP Manager]
end
subgraph ETCD [ETCD]
etcd[DCS Service]
end
subgraph NODE [NODE]
node[Software Repo]
end
PGSQL -->|depends| ETCD -->|depends| NODE
style PGSQL fill:#3E668F,stroke:#2d4a66,color:#fff
style ETCD fill:#5B9CD5,stroke:#4178a8,color:#fff
style NODE fill:#FCDB72,stroke:#d4b85e,color:#333
style patroni fill:#2d4a66,stroke:#1e3347,color:#fff
style vip fill:#2d4a66,stroke:#1e3347,color:#fff
style etcd fill:#4178a8,stroke:#2d5a7a,color:#fff
style node fill:#d4b85e,stroke:#b89a4a,color:#333One etcd cluster per Pigsty deployment serves multiple PG clusters.
Pigsty enables RBAC by default. Each PG cluster uses independent credentials for multi-tenant isolation. Admins use etcd root user with full permissions over all PG clusters.
Choose etcd cluster size based on requirements, provide reliable access.
ETCD module provides 13 configuration parameters for fine-grained control over cluster behavior.
etcd cluster management SOP: create, destroy, scale, config, and RBAC.
Manage etcd clusters with Ansible playbooks and quick command reference.
etcd monitoring dashboards, metrics, and alert rules.
Complete monitoring metrics list provided by Pigsty ETCD module
Frequently asked questions about Pigsty etcd module
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.