Merge pull request #144 from puppetlabs/RE-15163

(RE-15163) Call BGREWRITEAOF on the redis database every restart to reduce aof file size
This commit is contained in:
Jake Spain 2023-10-02 08:33:26 -04:00 committed by GitHub
commit e0c3671d93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,6 +156,13 @@ redis:
initialDelaySeconds: 40 initialDelaySeconds: 40
periodSeconds: 10 periodSeconds: 10
failureThreshold: 10 failureThreshold: 10
lifecycleHooks:
postStart:
exec:
command:
- /bin/sh
- -c
- echo "AUTH $REDIS_PASSWORD\nBGREWRITEAOF" | redis-cli
metrics: metrics:
enabled: true enabled: true
resources: resources: