ZooKeeper配置样例
位置:
zookeeper安装目录下/conf/zoo.cfg
配置样例
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
#client max links
maxClientCnxns=1000
# the directory where the snapshot is stored.
dataDir=/to/data/dir
dataLogDir=/to/log/dir
# the port at which the clients will connect
clientPort=2181
#multiple zookeeper server ,need set and put the myid(only #contains servier id) file to dataDir
#server.0=localhost:2888:3888