zookeeper.properties

Edit the zookeeper.properties file and add the parameters described below.

The zookeeper.properties file is located in the <MashZone NextGen installation> /rtbs/zookeeper/conf/ directory

Add the parameters:

The initLimit parameter is the time in seconds Zookeeper waits for other nodes to join the cluster (Zookeeper Ensemble). If the cluster initializations fails (especially relevant if nodes are not started in an automated and coordinated way), increase the value, for example, to 60.

For each Event Service server in the cluster, add a line as follows:

Here, <number> is a strictly monotonic increasing number starting at 1. It is not necessarily equivalent to rtbs.id, that is, if you decide to use rtbs.id=42 for machine1, the entry would still be server.1=machine1:2888:3888

For our example, this means that we need to add the following three lines:

Create the file <MashZone NextGen installation>/rtbs/zookeeper/data/zk-snapshot/myid.

Add the machine's rtbs.id to the file, that is, just the digit 1 for machine 1, digit 2 on machine 2, digit 3 for machine 3.