pvc-ansible/roles/pvc/templates/zookeeper/zoo.cfg.j2

20 lines
496 B
Plaintext
Raw Normal View History

2023-09-01 15:42:19 -04:00
# PVC Zookeeper configuration
# {{ ansible_managed }}
tickTime=1000
initLimit=10
syncLimit=5
dataDir=/var/lib/zookeeper
2023-09-01 15:42:21 -04:00
autopurge.purgeInterval=72
2023-09-01 15:42:19 -04:00
clientPort=2181
clientPortAddress={% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}{% endfor %}
2023-09-01 15:42:19 -04:00
# Increase client connections to 200 to prevent connection overloads
maxClientCnxns=200
2023-09-01 15:42:19 -04:00
{% for node in pvc_nodes if node.is_coordinator %}
server.{{ node.node_id }}={{ node.cluster_ip }}:2888:3888
2023-09-01 15:42:19 -04:00
{% endfor %}