/
test_parse.conf
106 lines (100 loc) · 2.17 KB
/
test_parse.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
streaming: {
id: "me"
discover_prefix: "discover"
store: "file"
dir: "/path/to/datastore"
sd: true
sv: true
ns: "nats://localhost:4222"
secure: true
hb_interval: "10s"
hb_timeout: "1s"
hb_fail_count: 2
ft_group: "ft"
partitioning: true
syslog_name: "myservice"
encrypt: true
encryption_cipher: "AES"
encryption_key: "key"
credentials: "credentials.creds"
username: "user"
password: "password"
token: "token"
nkey_seed_file: "seedfile"
store_limits: {
max_channels: 11
max_msgs: 12
max_bytes: 13
max_age: "14s"
max_subs: 15
max_inactivity: "16s"
channels: {
"foo": {
max_msgs: 1
max_bytes: 2
max_age: "3s"
max_subs: 4
max_inactivity: "5s"
}
"bar": {
max_msgs: 5
max_bytes: 6
max_age: "7s"
max_subs: 8
max_inactivity: "9s"
}
}
}
tls: {
client_cert: "/path/to/client/cert_file"
client_key: "/path/to/client/key_file"
client_ca: "/path/to/client/ca_file"
server_name: "localhost"
insecure: true
}
file: {
compact: true
compact_frag: 1
compact_interval: 2
compact_min_size: 3
buffer_size: 4
crc: true
crc_poly: 5
sync: true
cache: true
slice_max_msgs: 6
slice_max_bytes: 7
slice_max_age: "8s"
slice_archive_script: "myArchiveScript"
fds_limit: 8
parallel_recovery: 9
read_buffer_size: 10
auto_sync: "2m"
}
cluster: {
node_id: "a"
bootstrap: true
peers: ["b", "c"]
log_path: "/path/to/log"
log_cache_size: 1024
log_snapshots: 1
trailing_logs: 256
sync: true
proceed_on_restore_failure: true
raft_logging: true
raft_heartbeat_timeout: "1s"
raft_election_timeout: "1s"
raft_lease_timeout: "500ms"
raft_commit_timeout: "50ms"
allow_add_remove_node: true
bolt_free_list_sync: true
bolt_free_list_array: true
}
sql: {
driver: "mysql"
source: "ivan:pwd@/nss_db"
no_caching: true
max_open_conns: 5
bulk_insert_limit: 1000
}
}