Skip to content

Commit 8852b9a

Browse files
committed
(RE-15163) Call BGREWRITEAOF on the redis database every restart to reduce aof file size
1 parent 8b10896 commit 8852b9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

helm-charts/vmpooler/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ redis:
156156
initialDelaySeconds: 40
157157
periodSeconds: 10
158158
failureThreshold: 10
159+
lifecycleHooks:
160+
postStart:
161+
exec:
162+
command:
163+
- /bin/sh
164+
- -c
165+
- echo "AUTH $REDIS_PASSWORD\nBGREWRITEAOF" | redis-cli
159166
metrics:
160167
enabled: true
161168
resources:

0 commit comments

Comments
 (0)