# The number of milliseconds of each tick
#每个心跳的单位时间, 也是其他属性的基础时间单位
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take,
# 在集群中, follower和leader建立连接时的超时
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
#这个配置项标识 Leader 与 Follower 之间发送消息,请求和应答时间长度,最长不能超过多少个 tickTime 的时间长度,总的时间长度就是 2*2000=4 秒
syncLimit=5
# the directory where the snapshot is stored.
dataDir=/var/zookeeper
# the port at which the clients will connect
clientPort=2181