Skip to content

Commit b41f763

Browse files
committed
chore: add some docs to olricd.yaml
1 parent 80d8714 commit b41f763

File tree

1 file changed

+107
-1
lines changed

1 file changed

+107
-1
lines changed

cmd/olricd/olricd.yaml

Lines changed: 107 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
11
olricd:
2+
# BindAddr denotes the address that Olric will bind to for communication
3+
# with other Olric nodes.
24
bindAddr: 0.0.0.0
5+
6+
# BindPort denotes the address that Olric will bind to for communication
7+
# with other Olric nodes.
38
bindPort: 3320
9+
10+
# Default Serializer implementation uses gob for encoding/decoding.
411
serializer: msgpack
12+
13+
# KeepAlivePeriod denotes whether the operating system should send
14+
# keep-alive messages on the connection.
515
keepAlivePeriod: 300s
16+
17+
# Timeout for bootstrap control
18+
#
19+
# An Olric node checks operation status before taking any action for the
20+
# cluster events, responding incoming requests and running API functions.
21+
# Bootstrapping status is one of the most important checkpoints for an
22+
# "operable" Olric node. BootstrapTimeout sets a deadline to check
23+
# bootstrapping status without blocking indefinitely.
624
bootstrapTimeout: 5s
7-
partitionCount: 13
25+
26+
# PartitionCount is 271, by default.
27+
partitionCount: 271
28+
29+
# ReplicaCount is 1, by default.
830
replicaCount: 1
31+
32+
# Minimum number of successful writes to return a response for a write request.
933
writeQuorum: 1
34+
35+
# Minimum number of successful reads to return a response for a read request.
1036
readQuorum: 1
37+
38+
# Switch to control read-repair algorithm which helps to reduce entropy.
1139
readRepair: false
40+
41+
# Default value is SyncReplicationMode.
1242
replicationMode: 0 # sync mode. for async, set 1
43+
44+
# Minimum number of members to form a cluster and run any query on the cluster.
1345
memberCountQuorum: 1
1446
routingTablePushInterval: 1m
1547

@@ -19,26 +51,100 @@ storageEngines:
1951
tableSize: 1048576
2052

2153
client:
54+
# Timeout for TCP dial.
55+
#
56+
# The timeout includes name resolution, if required. When using TCP, and the host in the address parameter
57+
# resolves to multiple IP addresses, the timeout is spread over each consecutive dial, such that each is
58+
# given an appropriate fraction of the time to connect.
2259
dialTimeout: -1s
60+
61+
# Timeout for socket reads. If reached, commands will fail
62+
# with a timeout instead of blocking. Use value -1 for no timeout and 0 for default.
63+
# Default is DefaultReadTimeout
2364
readTimeout: 3s
65+
66+
# Timeout for socket writes. If reached, commands will fail
67+
# with a timeout instead of blocking.
68+
# Default is DefaultWriteTimeout
2469
writeTimeout: 3s
70+
71+
# KeepAlive specifies the interval between keep-alive
72+
# probes for an active network connection.
73+
# If zero, keep-alive probes are sent with a default value
74+
# (currently 15 seconds), if supported by the protocol and operating
75+
# system. Network protocols or operating systems that do
76+
# not support keep-alives ignore this field.
77+
# If negative, keep-alive probes are disabled.
2578
keepAlive: 15s
79+
80+
# Minimum TCP connection count in the pool for a host:port
2681
minConn: 1
82+
83+
# Maximum TCP connection count in the pool for a host:port
2784
maxConn: 100
85+
86+
# Timeout for getting a new connection from the pool. If reached, commands will fail
87+
# with a timeout instead of blocking. Use value -1 for no timeout and 0 for default.
88+
# Default is DefaultPoolTimeout
2889
poolTimeout: 3s
2990

3091
logging:
92+
# DefaultLogVerbosity denotes default log verbosity level.
93+
#
94+
# * 1 - Generally useful for this to ALWAYS be visible to an operator
95+
# * Programmer errors
96+
# * Logging extra info about a panic
97+
# * CLI argument handling
98+
# * 2 - A reasonable default log level if you don't want verbosity.
99+
# * Information about config (listening on X, watching Y)
100+
# * Errors that repeat frequently that relate to conditions that can be
101+
# corrected
102+
# * 3 - Useful steady state information about the service and
103+
# important log messages that may correlate to
104+
# significant changes in the system. This is the recommended default log
105+
# level for most systems.
106+
# * Logging HTTP requests and their exit code
107+
# * System state changing
108+
# * Controller state change events
109+
# * Scheduler log messages
110+
# * 4 - Extended information about changes
111+
# * More info about system state changes
112+
# * 5 - Debug level verbosity
113+
# * Logging in particularly thorny parts of code where you may want to come
114+
# back later and check it
115+
# * 6 - Trace level verbosity
116+
# * Context to understand the steps leading up to neterrors and warnings
117+
# * More information for troubleshooting reported issues
31118
verbosity: 6
119+
120+
# Default LogLevel is DEBUG. Available levels: "DEBUG", "WARN", "ERROR", "INFO"
32121
level: DEBUG
33122
output: stderr
34123

35124
memberlist:
36125
environment: local
126+
127+
# Configuration related to what address to bind to and ports to
128+
# listen on. The port is used for both UDP and TCP gossip. It is
129+
# assumed other nodes are running on this port, but they do not need
130+
# to.
37131
bindAddr: 0.0.0.0
38132
bindPort: 3322
133+
134+
# EnableCompression is used to control message compression. This can
135+
# be used to reduce bandwidth usage at the cost of slightly more CPU
136+
# utilization. This is only available starting at protocol version 1.
39137
enableCompression: false
138+
139+
# JoinRetryInterval is the time gap between attempts to join an existing
140+
# cluster.
40141
joinRetryInterval: 1ms
142+
143+
# MaxJoinAttempts denotes the maximum number of attemps to join an existing
144+
# cluster before forming a new one.
41145
maxJoinAttempts: 1
146+
147+
# See service discovery plugins
42148
#peers:
43149
# - "localhost:3325"
44150

0 commit comments

Comments
 (0)