How it works.

+

+

It uses Apache ZooKeeper to coordinate which node in the cluster becomes
the master. The elected master broker node starts and accepts client connections.
The other nodes go into slave mode and connect the the master and synchronize their persistent