diff --git a/doc/source/examples/zoo.cfg b/doc/source/examples/zoo.cfg index 7f0cbf7cba..685e42e7fc 100644 --- a/doc/source/examples/zoo.cfg +++ b/doc/source/examples/zoo.cfg @@ -4,7 +4,7 @@ tickTime=2000 initLimit=5 syncLimit=2 autopurge.snapRetainCount=3 -autopurge.purgeInterval=0 +autopurge.purgeInterval=2 maxClientCnxns=1000 standaloneEnabled=true admin.enableServer=true diff --git a/doc/source/howtos/zookeeper.rst b/doc/source/howtos/zookeeper.rst index b4b51618b1..caca171a81 100644 --- a/doc/source/howtos/zookeeper.rst +++ b/doc/source/howtos/zookeeper.rst @@ -15,10 +15,12 @@ The following general configuration setting in .. code-block:: - autopurge.purgeInterval=6 + autopurge.purgeInterval=2 -This instructs ZooKeeper to purge old snapshots every 6 hours. This -will avoid filling the disk. +ZooKeeper's default config will never purge snapshots, causing the +disk to eventually fill up. This instructs ZooKeeper to purge old +snapshots every 2 hours. This covers most use cases. This value +depends on load and available disk space. .. _zk-encrypted-connections: diff --git a/tools/zoo.cfg b/tools/zoo.cfg index 7d9f3cee40..56b96ca6fc 100644 --- a/tools/zoo.cfg +++ b/tools/zoo.cfg @@ -5,7 +5,7 @@ tickTime=2000 initLimit=5 syncLimit=2 autopurge.snapRetainCount=3 -autopurge.purgeInterval=0 +autopurge.purgeInterval=2 maxClientCnxns=1000 standaloneEnabled=true admin.enableServer=true