File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function deployRedis(input: { environment: Environment }) {
21
21
} ) . deploy ( {
22
22
limits : input . environment . isProduction
23
23
? {
24
- memory : '4Gi ' ,
24
+ memory : '6Gi ' ,
25
25
cpu : '1000m' ,
26
26
}
27
27
: {
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ export function deploySchema({
26
26
docker : Docker ;
27
27
sentry : Sentry ;
28
28
} ) {
29
+ const minuteInMS = 60 * 1000 ;
30
+ const hourInMS = minuteInMS * 60 ;
31
+
29
32
return new ServiceDeployment (
30
33
'schema-service' ,
31
34
{
@@ -38,8 +41,8 @@ export function deploySchema({
38
41
REQUEST_BROKER : '1' ,
39
42
SCHEMA_CACHE_POLL_INTERVAL_MS : '150' ,
40
43
SCHEMA_CACHE_TTL_MS : '65000' /* 65s */ ,
41
- SCHEMA_CACHE_SUCCESS_TTL_MS : '43200000' /* 12h */ ,
42
- SCHEMA_COMPOSITION_TIMEOUT_MS : '60000' /* 60s */ ,
44
+ SCHEMA_CACHE_SUCCESS_TTL_MS : String ( hourInMS * 2 ) ,
45
+ SCHEMA_COMPOSITION_TIMEOUT_MS : String ( minuteInMS ) ,
43
46
OPENTELEMETRY_COLLECTOR_ENDPOINT :
44
47
observability . enabled && observability . tracingEndpoint
45
48
? observability . tracingEndpoint
Original file line number Diff line number Diff line change @@ -108,11 +108,7 @@ export class Redis {
108
108
// Note: this is needed, otherwise local config is not loaded at all
109
109
command : [ '/opt/bitnami/scripts/redis/entrypoint.sh' ] ,
110
110
// This is where we can pass actual flags to the bitnami/redis runtime
111
- args : [
112
- '/opt/bitnami/scripts/redis/run.sh' ,
113
- `--maxmemory ${ memoryInMegabytes } mb` ,
114
- '--maxmemory-policy volatile-ttl' ,
115
- ] ,
111
+ args : [ '/opt/bitnami/scripts/redis/run.sh' , `--maxmemory ${ memoryInMegabytes } mb` ] ,
116
112
readinessProbe : {
117
113
initialDelaySeconds : 5 ,
118
114
periodSeconds : 8 ,
You can’t perform that action at this time.
0 commit comments