From 8852b9ad50cc580902263f0c097767997c545736 Mon Sep 17 00:00:00 2001 From: isaac-hammes Date: Fri, 29 Sep 2023 05:44:11 -0700 Subject: [PATCH] (RE-15163) Call BGREWRITEAOF on the redis database every restart to reduce aof file size --- helm-charts/vmpooler/values.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helm-charts/vmpooler/values.yaml b/helm-charts/vmpooler/values.yaml index e049a6c..e67e8c0 100644 --- a/helm-charts/vmpooler/values.yaml +++ b/helm-charts/vmpooler/values.yaml @@ -156,6 +156,13 @@ redis: initialDelaySeconds: 40 periodSeconds: 10 failureThreshold: 10 + lifecycleHooks: + postStart: + exec: + command: + - /bin/sh + - -c + - echo "AUTH $REDIS_PASSWORD\nBGREWRITEAOF" | redis-cli metrics: enabled: true resources: