# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial # synchronization phase can takeinitLimit=10# The number of ticks that can pass between # sending a request and getting an acknowledgementsyncLimit=5# 配置数据存储路径# the directory where the snapshot is stored.# do not use /tmp for storage, /tmp here is just # example sakes.dataDir= /root/Desktop/studySoftWare/zookeeper-3.7.1-localCluster/zookeeper-3.7.1-01/data
# 配置日志存储路径dataLogDir= /root/Desktop/studySoftWare/zookeeper-3.7.1-localCluster/zookeeper-3.7.1-01/data/logs
# 客户端通信端口# the port at which the clients will connectclientPort=15881# 集群配置# server.服务器ID=服务器IP地址:服务器之间通信端⼝:服务器之间投票选举端⼝server.1=localhost:16881:17881
server.2=localhost:16882:17882
server.3=localhost:16883:17883
# 管理平台端口配置
admin.serverPort:18881
# 最大客户端连接数# 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.## https://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## Metrics Providers## https://prometheus.io Metrics Exporter#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider#metricsProvider.httpHost=0.0.0.0#metricsProvider.httpPort=7000#metricsProvider.exportJvmInfo=true