-
Notifications
You must be signed in to change notification settings - Fork 76
/
xline_server.conf
65 lines (50 loc) · 1.87 KB
/
xline_server.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
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
[cluster]
name = 'node1'
is_leader = true
[cluster.members]
node1 = ['127.0.0.1:2379']
node2 = ['127.0.0.1:2380']
node3 = ['127.0.0.1:2381']
# curp server timeout settings
[cluster.curp_config]
# The heartbeat(tick) interval between curp server nodes, default value is 150ms
# heartbeat_interval = '150ms'
# The wait synced timeout between curp server nodes, default value is 5s
# wait_synced_timeout = '5s'
# The propose retry timeout between curp server nodes, default value is 800ms
# retry_timeout = '800ms'
# The rpc timeout between curp server nodes, default value is 50ms
# rpc_timeout = '50ms'
# How many ticks a follower is allowed to miss before it starts a new round of election, default value is 5
# The actual timeout will be randomized and in between heartbeat_interval * [follower_timeout_ticks, 2 * follower_timeout_ticks)
# follower_timeout_ticks = 5
# How many ticks a candidate needs to wait before it starts a new round of election, default value is 2
# It should be smaller than `follower_timeout_ticks`
# The actual timeout will be randomized and in between heartbeat_interval * [candidate_timeout_ticks, 2 * candidate_timeout_ticks)
# candidate_timeout_ticks = 2
# How often should the gc task run, default Value is 20s.
# gc_interval = '20s'
# curp client timeout settings
[cluster.client_config]
# The curp client timeout, default value is 1s
# timeout = '1s'
# The client wait synced timeout, default value is 2s
# wait_synced_timeout = '2s'
# The curp client propose request timeout
# propose_timeout = '1s'
# Storage Engine Settings. Required
[storage]
engine = 'rocksdb'
data_dir = '/usr/local/xline/data-dir'
[log]
path = '/var/log/xline'
rotation = 'daily'
level = 'info'
[trace]
jaeger_online = false
jaeger_offline = false
jaeger_output_dir = './jaeger_jsons'
jaeger_level = 'info'
[auth]
# auth_public_key = './public_key'.pem'
# auth_private_key = './private_key.pem'