Files
patroni/postgres1.yml
T
Alexander Kukushkin 08865512f8 Differentiate between connection address and listen address
For example you can listen on 0.0.0.0 but provide service on some
didicated ip. This should cover all possible use-cases when you are
running behind firewall, load balancer or inside for example docker.
2015-05-15 12:06:04 +02:00

27 lines
664 B
YAML

loop_wait: 10
etcd:
scope: batman
ttl: 30
host: 127.0.0.1:4001
postgresql:
name: postgresql1
listen: 127.0.0.1:5433
connection_address: 127.0.0.1:5433
data_dir: data/postgresql1
maximum_lag_on_failover: 1048576 # 1 megabyte in bytes
replication:
username: replicator
password: rep-pass
network: 127.0.0.1/32
#recovery_conf:
#restore_command: cp ../wal_archive/%f %p
parameters:
archive_mode: "on"
wal_level: hot_standby
archive_command: mkdir -p ../wal_archive && cp %p ../wal_archive/%f
max_wal_senders: 5
wal_keep_segments: 8
archive_timeout: 1800s
max_replication_slots: 5
hot_standby: "on"