Add purge config for ZK snapshots

* The zookeeper install bundled with the operator does not enable
  autopurging.

* This copies the settings from:
  1a48e06b54

* Without this, the zookeeper volumes fill up after about a week using
  the config tested in the CI.

Change-Id: If9f230bcf177c67afc9e29ae41cf5f97dd68daf1
This commit is contained in:
Jan Gutter
2025-07-10 17:19:31 +01:00
parent a9858a5b77
commit c65de4e59a

View File

@@ -90,7 +90,7 @@ data:
ZK_MIN_SESSION_TIMEOUT=${ZK_MIN_SESSION_TIMEOUT:- $((ZK_TICK_TIME*2))}
ZK_MAX_SESSION_TIMEOUT=${ZK_MAX_SESSION_TIMEOUT:- $((ZK_TICK_TIME*20))}
ZK_SNAP_RETAIN_COUNT=${ZK_SNAP_RETAIN_COUNT:-3}
ZK_PURGE_INTERVAL=${ZK_PURGE_INTERVAL:-0}
ZK_PURGE_INTERVAL=${ZK_PURGE_INTERVAL:-2}
ID_FILE="$ZK_DATA_DIR/myid"
ZK_CONFIG_FILE="$ZK_CONF_DIR/zoo.cfg"
LOG4J_PROPERTIES="$ZK_CONF_DIR/log4j.properties"