-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.conf
executable file
·29 lines (27 loc) · 1.05 KB
/
sample.conf
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
[MAIN]
# name of replica set (first field of log file entries)
NAME=mydb
# master database connection string:
DSN0=dbname=somedb user=someuser password=secret host=remote
# slave database connection string:
DSN1=dbname=somedb user=someuser password=secret
# in multimaster setup, set the replication postgres user
SKIP_USER=pyreplica
# in multi-slave setup, set the slave column to mark data as replicated
SLAVE_FIELD=replicated
# send a trivial query to keep alive the connection (optional)
KEEPALIVE=true
# optional debug level (0: none, 1: normal, 2: verbose, 3: very verbose)
DEBUG_LEVEL=1
# email notification config (optional):
[SMTP]
SERVER=somehost.somewhere.com
# login is optional:
USERNAME=no-reply@somewhere.com
PASSWORD=secret
START_SUBJECT=[PyReplica] Starting mydb replication
STOP_SUBJECT=[PyReplica] Stopping mydb replication
ERROR_SUBJECT=[PyReplica] Starting mydb replication (ERROR)
WARNING_SUBJECT=[Replica] WARNING on mydb replication
FROM_ADDR=no-reply@somewhere.com
TO_ADDRS=hostmaster@somewhere.com;dbadmin@somewhere.com