ffor remote bean:
CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + nextIndex + ",name1=replica." + changingIndex;
for local bean: CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + leavingIndex + ",name1=replica." + leavingIndex;
Assume am having servers zk-1, zk-2, zk-3.
For example, am checking the beans of zk-2 it has the following beans:
1) localbean: name0=ReplicatedServer_id2,name1=replica.2
2) remote bean of zk-1: name0=ReplicatedServer_id2,name1=replica.1
3) remote bean of zk-3: name0=ReplicatedServer_id2,name1=replica.3
the text here: https://zookeeper.apache.org/doc/r3.3.2/zookeeperJMX.html
indicates that the indices for replica.x and ReplicatedServer_id.x are the same (myid of the server). Can you explain why in the case of remote bean the indices are different ? should the documentation change ?
I think no issues in docs.
also, did you have a chance to try it with a jmx console ?
Attached snap of the jmx console. Also I tried adding few hints, please forgive if its confusing.