Skip to content

Expose some Patroni attributes via CRDs (i.e. synchronous_mode, tags, ...)

My need would be to choose between consistency-oriented vs availibility-oriented replicas. Ex :

  • strong consistency with synchronous HA-only (select not allowed, failover only)
  • strong availibility with asynchronous Read-Only (select allowed, no failover)

Here's some interesting attributes:

  • per replica : all Tags
  • DCS global : synchronous_mode, synchronous_mode_strict, synchronous_node_count, synchronous_commit (PG attribute)

Some others attributes may be interesting too for other reasons (i.e. failure reactivity) :

  • ttl, loop_wait, retry_timeout, maximum_lag_on_failover