1. # The number of milliseconds of each tick
    2. tickTime=2000
    3. # The number of ticks that the initial
    4. # synchronization phase can take
    5. initLimit=10
    6. # The number of ticks that can pass between
    7. # sending a request and getting an acknowledgement
    8. syncLimit=5
    9. # the directory where the snapshot is stored.
    10. # the port at which the clients will connect
    11. clientPort=2181
    12. # the port at which the admin will listen
    13. admin.enableServer=true
    14. admin.serverPort=9990 # zk带管理端
    15. # the maximum number of client connections.
    16. # increase this if you need to handle more clients
    17. #maxClientCnxns=60
    18. #
    19. # Be sure to read the maintenance section of the
    20. # administrator guide before turning on autopurge.
    21. #
    22. # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
    23. #
    24. # The number of snapshots to retain in dataDir
    25. autopurge.snapRetainCount=3
    26. # Purge task interval in hours
    27. # Set to "0" to disable auto purge feature
    28. autopurge.purgeInterval=1
    29. # Requires updates to be synced to media of the transaction log before finishing
    30. # processing the update. If this option is set to 'no', ZooKeeper will not require
    31. # updates to be synced to the media.
    32. # WARNING: it's not recommended to run a production ZK cluster with forceSync disabled.
    33. forceSync=yes
    34. dataDir=/home/pulsar/data/zookeeper/data # 用来放myid的
    35. dataLogDir=/home/pulsar/data/zookeeper/dataLog # 放日志的
    36. server.1=192.168.33.3:2888:2889 #zk 集群的信息
    37. server.2=192.168.33.4:2888:2889
    38. server.3=192.168.33.5:2888:2889