To add a ZooKeeper instance to the ZooKeeper ensemble, you need to add the following parameter to the file "
zoo.cfg
":
-
<id>
: the ZooKeeper instance id
-
<zk_host_address>
: the host name or ip address where the ZooKeeper instance is running
-
<zk_port_1>
: is used by peer ZooKeeper instances to communicate with each other
-
<zk_port_2>
: is used for the ZooKeeper leader election.
-
<zk_role>
: ZooKeeper instances roles ("participant
", "observer
"). The role is optional, and if not specified it defaults to "participant
".
-
<client_port_address>
: The client port address is optional, and if not specified it defaults to "0.0.0.0
".
-
<client_port>
: A client port of a ZooKeeper instance is the port on which the ZooKeeper instance accepts client connection requests.