Replies: 1 comment 1 reply
-
|
Great question, and I understand the frustration when GitOps expectations meet Patroni's design philosophy. The Core Issue: Patroni Owns Cluster-Level Parameters Especially like What The You Don't Need SSH Patroni exposes a REST API, so you can manage configurations without SSH: bash patronictl -c /pg/bin/patroni.yml edit-config <cluster>Or use the
This keeps operations centralized and auditable. The Honest Answer Patroni has effectively "taken over" PostgreSQL parameter management for HA clusters. Pigsty respects this boundary rather than fighting it. For true GitOps over Patroni config, you'd need to version-control your One More Thing The recently introduced |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my attempt to tidy up management of a swarm of PostgreSQL clusters by moving onto pgsty, I took it as and IaC project and steered towards GitOps scenario.
When the time came to configure logical replication as our CDC backbone, thankfully in the staging environment at first, I've found out that many parameters can't be configured through
pg_parametersin the inventory. They are, while successfully getting through topostgresql.auto.conf, are being ignored by patroni.So I can't change things like
max_connectionsor pin slots to patroni by editing an inventory and applyingpgsql.ymlplaybook with some tags likepg_config,pg_param,pg_reload,patroni_config,patroni_reload,pg_restart.I'll get
2026-02-02 19:04:11 +0500 INFO: PostgreSQL configuration parameters requiring restart (max_connections) seem to be changed bypassing Patroni config. Setting 'Pending restart' flagI've seen here that The author encourages us to use patronictl often. But doesn't that kill the appeal? As the maintenance quickly devolves back to manual intrusions over SSH.
Am I missing something about maintaining GitOps for patroni config or this is intended behaviour?
Beta Was this translation helpful? Give feedback.
All reactions