Support configuring Patroni synchronous replication settings in gitlab.rb
Summary
Support configuring Patroni synchronous replication settings (e.g., synchronous_mode, synchronous_mode_strict, synchronous_node_count) through gitlab.rb.
Proposal
Currently, configuring synchronous replication and standby nodes in Patroni requires direct changes via the Patroni binary or its YAML configuration. This makes the setup harder to manage and diverges from the GitLab convention of using gitlab.rb for infrastructure configuration.
We propose adding support for key synchronous replication directives in gitlab.rb, such as: synchronous_mode, synchronous_mode_strict, synchronous_node_count.
Benefits:
Centralizes configuration within GitLab’s standard infrastructure setup.
Simplifies management and reproducibility of HA deployments.
Reduces manual steps and risk of configuration drift.