forked from compose/governor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postgres1.yml
31 lines (31 loc) · 850 Bytes
/
postgres1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
loop_wait: 10
etcd:
scope: batman
ttl: 30
# if running etcd with authentication, application authentication by uncommenting the following
# authentication:
# username: myusername
# password: mypassword
endpoint: http://localhost:4001
haproxy_status:
listen: 127.0.0.1:15433
postgresql:
name: postgresql1
listen: 127.0.0.1:5433
data_dir: data/postgres1
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"