Update ZooKeeper autopurge recommendation

* This updates Zuul's recommendation to follow opendev's default:
  1a48e06b54

* Also adds some explanation for newbies to ZK.

* Update some example zoo.cfg files to have this setting.

Change-Id: Iac5440e09916cad79709eb4c1f93acf71e1e90bc
This commit is contained in:
Jan Gutter
2025-08-13 10:56:19 +01:00
parent 71a228dcc4
commit 05e17d0098
3 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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