Example multi-host ZooKeeper configuration
This example shows the ZooKeeper variables in the /etc/default/serviced configuration file of each host in a 4-node Control Center deployment. For convenience, the relevant settings for each node or host are also included in subsequent procedures.
Master host and ZooKeeper ensemble node, 198.51.100.135:
SERVICED_ISVCS_ZOOKEEPER_ID=1 SERVICED_ZK=198.51.100.135:2181,198.51.100.136:2181,198.51.100.137:2181 SERVICED_ISVCS_ZOOKEEPER_QUORUM=1@0.0.0.0:2888:3888,\ 2@198.51.100.136:2888:3888,3@198.51.100.137:2888:3888 SERVICED_ZK_SESSION_TIMEOUT=15
Delegate host and ZooKeeper ensemble node, 198.51.100.136:
SERVICED_ISVCS_START=zookeeper SERVICED_ISVCS_ZOOKEEPER_ID=2 SERVICED_ZK=198.51.100.135:2181,198.51.100.136:2181,198.51.100.137:2181 SERVICED_ISVCS_ZOOKEEPER_QUORUM=1@198.51.100.135:2888:3888,\ 2@0.0.0.0:2888:3888,3@198.51.100.137:2888:3888 SERVICED_ZK_SESSION_TIMEOUT=15
Delegate host and ZooKeeper ensemble node, 198.51.100.137:
SERVICED_ISVCS_START=zookeeper SERVICED_ISVCS_ZOOKEEPER_ID=3 SERVICED_ZK=198.51.100.135:2181,198.51.100.136:2181,198.51.100.137:2181 SERVICED_ISVCS_ZOOKEEPER_QUORUM=1@198.51.100.135:2888:3888,\ 2@198.51.100.136:2888:3888,3@0.0.0.0:2888:3888 SERVICED_ZK_SESSION_TIMEOUT=15
Delegate host, 198.51.100.138:
SERVICED_ZK=198.51.100.135:2181,198.51.100.136:2181,198.51.100.137:2181