fix: raise Node heap cap to 512MB and bump pod memory limit (#838)
Release / release (push) Failing after 50s
schemas / vulnerabilities (push) Successful in 2m4s
schemas / check (push) Successful in 2m21s
schemas / check-release (push) Successful in 2m50s
pre-commit / pre-commit (push) Successful in 5m58s
schemas / build (push) Successful in 12m18s
schemas / deploy-prod (push) Successful in 1m10s
Release / release (push) Failing after 50s
schemas / vulnerabilities (push) Successful in 2m4s
schemas / check (push) Successful in 2m21s
schemas / check-release (push) Successful in 2m50s
pre-commit / pre-commit (push) Successful in 5m58s
schemas / build (push) Successful in 12m18s
schemas / deploy-prod (push) Successful in 1m10s
This commit was merged in pull request #838.
This commit is contained in:
+4
-2
@@ -30,8 +30,10 @@ ENV TZ Europe/Stockholm
|
|||||||
# Install wgc CLI globally for Cosmo Router composition
|
# Install wgc CLI globally for Cosmo Router composition
|
||||||
RUN npm install -g wgc@latest
|
RUN npm install -g wgc@latest
|
||||||
|
|
||||||
# Cap Node.js heap for runtime wgc invocations to prevent OOM
|
# Cap Node.js heap for runtime wgc invocations. 512MB leaves room for
|
||||||
ENV NODE_OPTIONS="--max-old-space-size=64"
|
# composing supergraphs with many subgraphs; lower caps (e.g. 64MB) OOM
|
||||||
|
# wgc as the subgraph count grows.
|
||||||
|
ENV NODE_OPTIONS="--max-old-space-size=512"
|
||||||
|
|
||||||
# Copy timezone data and certificates
|
# Copy timezone data and certificates
|
||||||
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
|
|||||||
+3
-1
@@ -43,7 +43,9 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: "20m"
|
||||||
memory: "20Mi"
|
memory: "128Mi"
|
||||||
|
limits:
|
||||||
|
memory: "768Mi"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health/live
|
path: /health/live
|
||||||
|
|||||||
Reference in New Issue
Block a user