From 1a48e06b545affdcc82bcd7b351d9c3e4a74d1f9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 8 Nov 2021 07:34:46 -0800 Subject: [PATCH] Purge ZK snapshots more frequently It looks like 6 hours is too infrequent and is enough time for the disk to fill up when we're busy. Instead, purge old snapshots every 2 hours, which looks like it should give us plenty of headroom with our current usage pattern. Change-Id: Ieb92d052e633e9326c41367442f036cc333c40f2 --- playbooks/roles/zookeeper/templates/zoo.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/zookeeper/templates/zoo.cfg.j2 b/playbooks/roles/zookeeper/templates/zoo.cfg.j2 index 8ca9db5b63..88821e1922 100644 --- a/playbooks/roles/zookeeper/templates/zoo.cfg.j2 +++ b/playbooks/roles/zookeeper/templates/zoo.cfg.j2 @@ -18,7 +18,7 @@ autopurge.snapRetainCount=3 # be separately controlled through snapRetainCount and # defaults to the minimum value of 3. This will quickly fill the # disk in production if not enabled. Works on ZK >=3.4. -autopurge.purgeInterval=6 +autopurge.purgeInterval=2 maxClientCnxns=60 standaloneEnabled=true admin.enableServer=true