mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 03:28:41 -05:00
(RE-15163) Call BGREWRITEAOF on the redis database every restart to reduce aof file size
This commit is contained in:
parent
8b10896e93
commit
8852b9ad50
1 changed files with 7 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue