Skip to content

Commit 1d3b6a5

Browse files
authored
fix: increase memory to avoid unnecessary cpu spike related to GC (#2570)
1 parent b884f15 commit 1d3b6a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ COPY --from=build /app/dist ./dist
3030
EXPOSE 3000
3131
HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:3000/api
3232

33-
# Nonroot user, limit heap size to 50 MB
33+
# Nonroot user, limit heap size to 150 MB
3434
USER nonroot
35-
CMD ["--max-old-space-size=50", "/app/dist/main"]
35+
CMD ["--max-old-space-size=150", "/app/dist/main"]

charts/app/templates/backend/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
resources:
4949
requests:
5050
cpu: 50m
51-
memory: 75Mi
51+
memory: 200Mi
5252
containers:
5353
- name: {{ include "backend.fullname" . }}
5454
{{- if .Values.backend.securityContext }}
@@ -100,7 +100,7 @@ spec:
100100
resources: # this is optional
101101
requests:
102102
cpu: 50m
103-
memory: 75Mi
103+
memory: 200Mi
104104
{{- with .Values.backend.nodeSelector }}
105105
nodeSelector:
106106
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)