forked from makandra/governor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostgres0.yml
37 lines (37 loc) · 1022 Bytes
/
postgres0.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
32
33
34
35
36
37
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
timeout: 5
haproxy_status:
listen: 127.0.0.1:15432
postgresql:
name: postgresql0
listen: 127.0.0.1:5432
data_dir: data/postgres0
maximum_lag_on_failover: 1048576 # 1 megabyte in bytes
# use_tcp_for_local_connection: true
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
synchronous_commit: "local"
synchronous_standby_names: '*'
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"
#initdb_parameters:
#- '--encoding=SQL_ASCII'