Skip to content

Commit f885514

Browse files
authored
fix(redis): memory and config adjustments (#6746)
1 parent 0efda27 commit f885514

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deployment/services/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function deployRedis(input: { environment: Environment }) {
2121
}).deploy({
2222
limits: input.environment.isProduction
2323
? {
24-
memory: '3Gi',
24+
memory: '4Gi',
2525
cpu: '1000m',
2626
}
2727
: {

deployment/utils/redis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class Redis {
8181
},
8282
];
8383

84-
const memoryInBytes = memoryParser(input.limits.memory) * 0.8; // Redis recommends 80%
84+
const memoryInBytes = memoryParser(input.limits.memory) * 0.9; // Redis recommends 80%
8585
const memoryInMegabytes = Math.floor(memoryInBytes / 1024 / 1024);
8686

8787
const pb = new PodBuilder({

0 commit comments

Comments
 (0)