You can configure high availability for ZooKeeper either during EDS installation or after installation. To configure high availability, deploy ZooKeeper in a cluster known as an ensemble.
To configure ZooKeeper high availability, perform the following configurations:
Configure multiple ZooKeeper servers
You can configure multiple servers for ZooKeeper in the following ways:
During installation. When you install EDS, you can specify the IP address and port combinations of the machines in the ZooKeeper ensemble. In the installer wizard, configure the
Apache ZooKeeper IP Address and Ports
property.
The IP address and port combination has the following format:
<IP Address>:<port>
You can enter multiple comma-separated IP address and port combinations. If one instance of ZooKeeper fails, the Administrator Daemon connects to the next available ZooKeeper server.
After installation. After you install EDS, configure the
zoo.cfg
file. Specify the IP address and port combinations of the machines in the ZooKeeper ensemble in the following format:
server.id=host:port:port
For information about configuring a ZooKeeper ensemble, see the