forked from Restream/reindexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
replication.conf
38 lines (28 loc) · 1.06 KB
/
replication.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
30
31
32
33
34
35
36
37
38
## Reindexer replication configuration sample
# Replication role. May be one of
# none - replication is disabled
# slave - replication as slave
# master - replication as master
role: slave
# DSN to master. Only cproto schema is supported
master_dsn: cproto://127.0.0.1:6534/itv_api_ng
# Application name used by replicator as a login tag
app_name: rx_slave
# Master response timeout
timeout_sec: 60
# Enable network traffic compression
enable_compression: true
# Cluser ID - must be same for client and for master
cluster_id: 2
# Force resync on logic error conditions
force_sync_on_logic_error: true
# Force resync on wrong data hash conditions
force_sync_on_wrong_data_hash: false
# Resync timeout on network errors"
retry_sync_interval_sec: 20
# Count of online replication erros, which will be merged in single error message
online_repl_errors_threshold: 100
# List of namespaces for replication. If emply, all namespaces
# All replicated namespaces will become read only for slave
# It should be written as YAML sequence, JSON-style arrays are not supported
namespaces: []