2019-06-09 00:11:06 -04:00
|
|
|
# PVC Zookeeper configuration
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
tickTime=1000
|
|
|
|
initLimit=10
|
|
|
|
syncLimit=5
|
|
|
|
dataDir=/var/lib/zookeeper
|
|
|
|
|
2019-08-05 13:13:25 -04:00
|
|
|
autopurge.purgeInterval=72
|
|
|
|
|
2019-06-09 00:11:06 -04:00
|
|
|
clientPort=2181
|
2021-06-22 02:46:56 -04:00
|
|
|
clientPortAddress={% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
2021-06-22 03:10:18 -04:00
|
|
|
# Increase client connections to 200 to prevent connection overloads
|
|
|
|
maxClientCnxns=200
|
|
|
|
|
2019-06-09 00:11:06 -04:00
|
|
|
{% for node in pvc_nodes if node.is_coordinator %}
|
2021-06-22 02:46:56 -04:00
|
|
|
server.{{ node.node_id }}={{ node.cluster_ip }}:2888:3888
|
2019-06-09 00:11:06 -04:00
|
|
|
{% endfor %}
|