Skip to content
5 changes: 5 additions & 0 deletions .changeset/legal-parrots-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hive': patch
---

Increase default schema worker memory by 15% to handle larger schemas
2 changes: 1 addition & 1 deletion deployment/services/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function prepareEnvironment(input: {
},
},
schemaService: {
memoryLimit: isProduction || isStaging ? '3584Mi' : '1Gi',
memoryLimit: isProduction || isStaging ? '4Gi' : '1Gi',
replicas: isProduction || isStaging ? 6 : 1,
},
usageService: {
Expand Down
3 changes: 2 additions & 1 deletion deployment/services/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ 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 || environment.isStaging ? '832' : '512',
OPENTELEMETRY_COLLECTOR_ENDPOINT:
observability.enabled && observability.tracingEndpoint
? observability.tracingEndpoint
Expand Down
Loading