pg_replica 0.6.9

Consensus-driven failover for PostgreSQL (Raft control plane)
# Test cluster postgres.conf — single source for static config (mirrors the prod
# services/parade/postgres.conf approach). The entrypoint writes a tiny
# $PGDATA/postgresql.conf that does `include` of this file plus the per-node lines
# (node_id/cluster_name/primary_slot_name), pg_replica.psql, and any per-test
# tunables (synchronous/compact_threshold/wal_keep_size/max_wal_size) — so an
# in-place rejoin (pg_ctl -D $PGDATA) resolves the full config.
listen_addresses = '*'
wal_level = replica
max_wal_senders = 10
max_replication_slots = 10
hot_standby = on
wal_log_hints = on
wal_keep_size = '512MB'
max_wal_size = '1GB'
max_slot_wal_keep_size = '1GB'
shared_preload_libraries = 'pg_replica'

pg_replica.raft_port = 7400
pg_replica.peers    = '1@node1:7400,2@node2:7400,3@node3:7400'
pg_replica.pg_addrs = '1@node1:5432,2@node2:5432,3@node3:5432'
pg_replica.passfile = '/var/lib/postgresql/.pgpass'
pg_replica.synchronous = off
pg_replica.compact_threshold = 64
pg_replica.raft_dir = '/var/lib/postgresql/raft'
pg_replica.rejoin_script = '/opt/pg_replica/rejoin.sh'
pg_replica.watchdog_script = '/opt/pg_replica/watchdog.sh'