diff --git a/.changeset/legal-parrots-own.md b/.changeset/legal-parrots-own.md new file mode 100644 index 00000000000..f3eee2c6f62 --- /dev/null +++ b/.changeset/legal-parrots-own.md @@ -0,0 +1,5 @@ +--- +'hive': patch +--- + +Increase default schema worker memory by 15% to handle larger schemas diff --git a/deployment/services/environment.ts b/deployment/services/environment.ts index ce4c0d7b907..1dcfd9e24d4 100644 --- a/deployment/services/environment.ts +++ b/deployment/services/environment.ts @@ -60,7 +60,8 @@ export function prepareEnvironment(input: { }, }, schemaService: { - memoryLimit: isProduction || isStaging ? '3584Mi' : '1Gi', + memoryLimit: isProduction ? '4Gi' : isStaging ? '3Gi' : '1Gi', + memoryRequests: isProduction || isStaging ? '2866Mi' : '512mi', replicas: isProduction || isStaging ? 6 : 1, }, usageService: { diff --git a/deployment/services/schema.ts b/deployment/services/schema.ts index 1bf9704c0ff..8089b5cfddd 100644 --- a/deployment/services/schema.ts +++ b/deployment/services/schema.ts @@ -42,7 +42,7 @@ export function deploySchema({ SCHEMA_CACHE_POLL_INTERVAL_MS: '150', SCHEMA_CACHE_TTL_MS: '65000' /* 65s */, SCHEMA_CACHE_SUCCESS_TTL_MS: String(hourInMS * 2), - COMPOSITION_WORKER_MAX_OLD_GENERATION_SIZE_MB: '716', + COMPOSITION_WORKER_MAX_OLD_GENERATION_SIZE_MB: environment.isProduction ? '832' : '512', OPENTELEMETRY_COLLECTOR_ENDPOINT: observability.enabled && observability.tracingEndpoint ? observability.tracingEndpoint @@ -55,6 +55,7 @@ export function deploySchema({ replicas: environment.podsConfig.schemaService.replicas, memory: { limit: environment.podsConfig.schemaService.memoryLimit, + requests: environment.podsConfig.schemaService.memoryRequests, }, pdb: true, },