# The number of milliseconds of each tick # 通信心跳时间,Zookeeper服务器与客户端心跳时间,单位毫秒。 tickTime=2000
# The number of ticks that the initial # synchronization phase can take # LF初始通信时限。 # Leader和Follower初始连接时能容忍的最多心跳数,单位次(即tickTime的数量)。 initLimit=10
# The number of ticks that can pass between # sending a request and getting an acknowledgement # LF同步通信时限。 # Leader和Follower连接之后,通信时能容忍的最多心跳数,单位次。 # 时间如果超过syncLimit * tickTime,Leader认为Follwer挂掉,从服务器列表中删除Follwer。 syncLimit=5
# the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. # 保存Zookeeper中的数据的目录。 dataDir=/test/zk/data
# the port at which the clients will connect # 客户端连接端口,通常不做修改。 clientPort=2181