Skip to content

Commit cc552c9

Browse files
authored
chore: disable redis snapshots (#6729)
1 parent 04ed455 commit cc552c9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/eleven-planets-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Disable redis snapshotting

deployment/utils/redis.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ export class Redis {
108108
// Note: this is needed, otherwise local config is not loaded at all
109109
command: ['/opt/bitnami/scripts/redis/entrypoint.sh'],
110110
// This is where we can pass actual flags to the bitnami/redis runtime
111-
args: ['/opt/bitnami/scripts/redis/run.sh', `--maxmemory ${memoryInMegabytes}mb`],
111+
args: [
112+
'/opt/bitnami/scripts/redis/run.sh',
113+
`--maxmemory ${memoryInMegabytes}mb`,
114+
// This disables snapshotting to save cpu and reduce latency spikes
115+
'--save ""',
116+
],
112117
readinessProbe: {
113118
initialDelaySeconds: 5,
114119
periodSeconds: 8,

0 commit comments

Comments
 (0)