Zookeeper 配置文件说明¶
tickTime¶
The number of milliseconds of each tick
initLimit¶
The number of ticks that the initial synchronization phase can take
syncLimit¶
The number of ticks that can pass between sending a request and getting an acknowledgement
dataDir¶
the directory where the snapshot is stored. do not use /tmp for storage, /tmp here is just example sakes.
clientPort¶
the port at which the clients will connect
#maxClientCnxns¶
the maximum number of client connections. increase this if you need to handle more clients
#autopurge.snapRetainCount¶
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.purgeInterval¶
Purge task interval in hours. Set to "0" to disable auto purge feature
metricsProvider.*¶
# metricsProvider.className
# #metricsProvider.httpHost
# #metricsProvider.httpPort
# #metricsProvider.exportJvmInfo
Metrics Providers https://prometheus.io Metrics Exporter