Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.18 KB

ZooKeeper role

This role automates the maintenance of a ZooKeeper cluster.

In the context of the software we use, this could currently be leveraged as an alternative to either multicast or avahi/mDNS.

Configuration

inventory file

[zookeeper:children]
zookeeper-somedc-prod

[zookeeper-somedc-prod:children]
zookeeper1-somedc-prod

[zookeeper1-somedc-prod]
node1.zookeeper.somedc.prod1  ansible_ssh_host=172.16.0.101 zoo_id=1
node2.zookeeper.somedc.prod1  ansible_ssh_host=172.16.0.102 zoo_id=2
node3.zookeeper.somedc.prod1  ansible_ssh_host=172.16.0.103 zoo_id=3

[zookeeper1-somedc-prod:vars]
# Must be set to the name of the subgroup
zookeeper_cluster_name = zookeeper1-somedc-prod

# Optional. Change the logging level.
# For possible levels, see: http://logging.apache.org/log4j/1.2/manual.html#Logger_hierarchy
# Default: "INFO,CONSOLE"
zookeeper_log4j_prop = "WARN,CONSOLE"

See also