zookeeper-zoo.zfg

zoo.cfg文件:

属性 默认值 官方介绍 详解
tickTime 2000 the number of milliseconds of each tick 工作时间单元,以毫秒为单位,用来控制心跳和超时。默认情况下,一次会话的最小的超时时间是tickTime的两倍。
initLimit 10

the number of ticks that the initial synchronization phase can take

默认,初始同步阶段花费10个工作时间单元
syncLimit 5 the number of ticks that can pass between sending a request and getting an acknowledgement 发送一次请求和得到一次确认需要花费5个工作时间单元
dataDir   the directory where the snapshot is stored 内存数据库快照被存储的目录
dataLogDir     事务日志被存储的目录
clientPort 2181 the port at which the clients will connect client 连接的端口
maxClientCnxns 60 the maximum number of client connections 客户端连接的最大数量
autopurge.snapRetainCount 3 the number of snapshots to retain in dataDir 在dataDir中保留的快照数量
autopurge.purgeInterval 1 purge task interval in hours 清理任务每小时执行的次数
       

猜你喜欢

转载自blog.csdn.net/qq_34561892/article/details/82722343
zoo