-
Notifications
You must be signed in to change notification settings - Fork 0
/
pg_leader.config
71 lines (55 loc) · 2.02 KB
/
pg_leader.config
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
EXTENSION_NAME=pg_leader
# Database name will be formed as PGLD_DB_PATHNAME_PREFIX+database_id,
# where database_id as index takes values 0, 1, 2, 3, ..., n, ...
# For instance, if PGLD_DB_PATHNAME_PREFIX=~/db/db
# then postgres database clusters will be inited in directories
# ~/db/db0, ~/db/db1, ~/db/db2, ...
PGLD_DB_PATHNAME_TEMPLATE=~/db/db
# Nodes with launched pg_leader extension on them will be listens for
# psql connection on UNIX socket with port PGLD_START_PORT+node_id.
# For instance,
# ports 5000 for $PGLD_DB_PATHNAME_PREFIX+0, 5001 for $PGLD_DB_PATHNAME_PREFIX+1, and so on
PGLD_START_PORT=5000
# Num of nodes
N_NODES=5
# IP:PORT for each node.
# Important: only IPv4 supported in format x.x.x.x:p
# Format "x1.x1.x1.x1:p1 x2.x2.x2.x2:p2 x3.x3.x3.x3:p3"
# or "x1.x1.x1.x1:p1
# x2.x2.x2.x2:p2
# x3.x3.x3.x3:p3"
IPv4_CLUSTER="192.168.10.10:3500
192.168.10.11:3501
192.168.10.12:3502
192.168.10.13:3503
192.168.10.14:3504"
# --- internal algorithm logger (not the postgres logger) ---
# log located in postgres database cluster
ENABLE_LOG=true
LOG_NAME=pg_leader.log
# --- logger ---
# --- algorithm specific ---
# Time in ms (max 999)
# Timeouts for nodes in follower and candidate mode
MIN_TIMEOUT=200
MAX_TIMEOUT=400
# Only in leader mode
HEARTBEAT_TIMEOUT=50
# --- algorithm specific ---
# --- test_stand specific ---
# Network namespace name will be formed as PGLD_NNS_PREFIX+network_namespace_id,
# where network_namespace_id as index takes values 0, 1, 2, 3, ..., n, ...
# For instance, if PGLD_NNS_PREFIX=nns_node
# then network namespace names:
# nns_node0, nns_node1, nns_node2, ...
PGLD_NNS_PREFIX=nns_node
# virtual ethernet interface name in root network namespace side
VETH_ROOT_NAME_PREFIX=pgldveth
# virtual ethernet interface name in others network namespace sides
VETH_LOCAL_NAME_PREFIX=pgldceth
# bridge interface name
BRIDGE_NAME=pgldbridge
# network and mask will be used to assign id for
NETWORK=192.168.10
MASK=24
# --- test_stand specific ---