2020-04-16 07:44:34 -07:00
|
|
|
dataDir=/data
|
|
|
|
dataLogDir=/datalog
|
|
|
|
# The number of milliseconds of each tick
|
|
|
|
tickTime=2000
|
|
|
|
# The number of ticks that the initial
|
|
|
|
# synchronization phase can take
|
|
|
|
initLimit=10
|
|
|
|
# The number of ticks that can pass between
|
|
|
|
# sending a request and getting an acknowledgement
|
|
|
|
syncLimit=5
|
|
|
|
# When enabled, ZooKeeper auto purge feature retains the autopurge.
|
|
|
|
# snapRetainCount most recent snapshots and the corresponding
|
|
|
|
# transaction logs in the dataDir and dataLogDir respectively and
|
|
|
|
# deletes the rest. Defaults to 3. Minimum value is 3.
|
|
|
|
autopurge.snapRetainCount=3
|
|
|
|
# The frequency in hours to look for and purge old snapshots,
|
|
|
|
# defaults to 0 (disabled). The number of retained snapshots can
|
|
|
|
# be separately controlled through snapRetainCount and
|
|
|
|
# defaults to the minimum value of 3. This will quickly fill the
|
|
|
|
# disk in production if not enabled. Works on ZK >=3.4.
|
2021-11-08 07:34:46 -08:00
|
|
|
autopurge.purgeInterval=2
|
2020-04-16 07:44:34 -07:00
|
|
|
maxClientCnxns=60
|
|
|
|
standaloneEnabled=true
|
|
|
|
admin.enableServer=true
|
2021-03-17 12:57:21 -07:00
|
|
|
4lw.commands.whitelist=srvr, stat, dump, mntr
|
2020-06-16 11:15:10 -07:00
|
|
|
clientPort=2181
|
2020-06-17 10:32:17 -07:00
|
|
|
secureClientPort=2281
|
|
|
|
ssl.keyStore.location=/tls/keys/keystore.pem
|
|
|
|
ssl.trustStore.location=/tls/certs/cacert.pem
|
2020-04-16 07:44:34 -07:00
|
|
|
{% for host in groups['zookeeper'] %}
|
2021-04-27 10:16:08 -07:00
|
|
|
server.{{ host | regex_replace('^zk(\\d+)\\.open.*\\.org$', '\\1') | int }}={{ (hostvars[host].public_v4) }}:2888:3888
|
2020-04-16 07:44:34 -07:00
|
|
|
{% endfor %}
|
2020-06-17 10:32:17 -07:00
|
|
|
sslQuorum=true
|
|
|
|
serverCnxnFactory=org.apache.zookeeper.server.NettyServerCnxnFactory
|
|
|
|
ssl.quorum.keyStore.location=/tls/keys/keystore.pem
|
|
|
|
ssl.quorum.trustStore.location=/tls/certs/cacert.pem
|