mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-01-27 10:20:10 +00:00
40 lines
975 B
YAML
40 lines
975 B
YAML
ttl: &ttl 30
|
|
loop_wait: &loop_wait 10
|
|
restapi:
|
|
listen: 127.0.0.1:8009
|
|
connect_address: 127.0.0.1:8009
|
|
etcd:
|
|
scope: batman
|
|
ttl: *ttl
|
|
host: 127.0.0.1:4001
|
|
#discovery_srv: my-etcd.domain
|
|
#zookeeper:
|
|
# scope: batman
|
|
# session_timeout: *ttl
|
|
# reconnect_timeout: *loop_wait
|
|
# hosts: 127.0.0.1:2181
|
|
postgresql:
|
|
name: postgresql1
|
|
listen: 127.0.0.1:5433
|
|
connect_address: 127.0.0.1:5433
|
|
data_dir: data/postgresql1
|
|
maximum_lag_on_failover: 1048576 # 1 megabyte in bytes
|
|
pg_hba:
|
|
- host all all 0.0.0.0/0 md5
|
|
- hostssl all all 0.0.0.0/0 md5
|
|
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"
|