Start from 5.9, Activemq comes with another HA option called ReplicatedLevelDB. I would recommend start from 5.9.1 at least, and I found a lot bugs in the 5.9.
basic idea, Zookeeper as the central coordination point, every broker talked to the Zk , ZK wills tell the member information like who is the master. slave talks to master node to fetch the incremental change when it come online.
for the configuration, each member in a cluster share the same broker name, zookeepeer address, and zkPass.
and transportconnector is transparent to the underlining persistence layer.
when you startup the broker, for the 1st one, since we setup the replica to 2,that means we have to start at least 2 brokers to meet the quota requirement.
after 2 broker ready, you can see it’s a slave node,
for the 1st ndoe, which is the master node, will turn on the transportconnector that is openwire here,