zoo.cfg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # The number of milliseconds of each tick
  18. tickTime=2000
  19. # The number of ticks that the initial
  20. # synchronization phase can take
  21. initLimit=10
  22. # The number of ticks that can pass between
  23. # sending a request and getting an acknowledgement
  24. syncLimit=5
  25. # the directory where the snapshot is stored.
  26. # do not use /tmp for storage, /tmp here is just
  27. # example sakes.
  28. dataDir=/tmp/zookeeper
  29. # the port at which the clients will connect
  30. clientPort=2181
  31. # the maximum number of client connections.
  32. # increase this if you need to handle more clients
  33. #maxClientCnxns=60
  34. #
  35. # Be sure to read the maintenance section of the
  36. # administrator guide before turning on autopurge.
  37. #
  38. # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
  39. #
  40. # The number of snapshots to retain in dataDir
  41. #autopurge.snapRetainCount=3
  42. # Purge task interval in hours
  43. # Set to "0" to disable auto purge feature
  44. #autopurge.purgeInterval=1