zookeeper 集群中服务器列表的规范

specification of list of servers in zookeeper cluster

动物园管理员列表的第二个组成部分只是一个序列号还是必须对应实例的myId?例如,如果我使用 myId=4 设置一个新节点并使用现有节点的 myId=3 取消配置实例,我的配置是否必须如下所示:

tickTime=2000 
dataDir=/usr/src/zookeeper
clientPort=2181
initLimit=10
syncLimit=5
server.1=192.168.1.2:2888:3888
server.2=192.168.1.3:2888:3888
server.4=192.168.1.5:2888:3888

对应实例的myId

Every machine that is part of the ZooKeeper ensemble should know about every other machine in the ensemble. You accomplish this with the series of lines of the form server.id=host:port:port. The parameters host and port are straightforward. You attribute the server id to each machine by creating a file named myid, one for each server, which resides in that server's data directory, specified by the configuration file parameter dataDir.

来源:http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkMulitServerSetup