-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoo.cfg.ctmpl
21 lines (20 loc) · 918 Bytes
/
zoo.cfg.ctmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# The number of milliseconds of each tick
tickTime={{ env "ZOO_TICK_TIME" }}
# The number of ticks that the initial
# synchronization phase can take
initLimit={{ env "ZOO_INIT_LIMIT" }}
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit={{ env "ZOO_SYNC_LIMIT" }}
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir={{ env "ZOO_DATA_DIR" }}
# the port at which the clients will connect
clientPort={{ env "ZOO_PORT" }}
# the directory where the log is stored.
dataLogDir={{ env "ZOO_DATA_LOG_DIR" }}
# Every machine that is part of the ZooKeeper ensemble should know about every other machine in the ensemble.
{{ with env "ZOO_MY_ID" | plugin "/usr/local/bin/zkGenServers.py" | parseJSON }}
{{ range . }}server.{{ .ID }}={{ .Address }}:{{ .ServerPort }}:{{ .ElectionPort }}
{{ end }}{{ end }}