zookeeper配置文件

本文介绍了Zookeeper服务的配置,重点是默认的zoo_sample.cfg示例配置文件,以及实际运行时使用的zoo.cfg配置文件。

zookeeper默认在conf目录下包含一个zoo_sample.cfg示例配置文件,服务实际读取的配置文件则是zoo.cfg

# ZooKeeper使用的基本时间单位(以毫秒为单位)。 它用于做心跳,最小会话超时将是tickTime的两倍。
tickTime=2000
# 是暂停ZooKeeper用于限制仲裁中ZooKeeper服务器连接到领导者的时间长度,是tickTime的倍数
initLimit=10
# 限制服务器与领导者的过期时间,是tickTime的倍数
syncLimit=5
# 存储内存数据库快照的位置,除非另有说明,否则为数据库更新的事务日志。
dataDir=/tmp/zookeeper
# 侦听客户端连接的端口
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值