fix: 프로필 프론트 빌드 heap을 분리

운영 runtime의 공용 Node heap은 유지하면서 profile vue-tsc와 Vite build에만 별도 NODE_OPTIONS를 적용한다.\n\nsam.hided.net HWE에서 확인한 1536 MiB heap OOM을 2048 MiB build override로 처리할 수 있도록 회귀 테스트와 운영 문서를 추가한다.
This commit is contained in:
2026-08-19 13:20:40 +00:00
parent 54a5b91ca9
commit 04fc7dfe52
3 changed files with 37 additions and 4 deletions
+6 -3
View File
@@ -56,9 +56,12 @@ profile 범위 권한과 별개인 전역 `admin.releases.manage` 권한이 필
`NODE_OPTIONS``RAYON_NUM_THREADS`는 출력에는 영향을 주지 않는 resource 제한으로
build child에 전달됩니다.
- `TURN_DAEMON_NODE_OPTIONS`가 설정되어 있으면 Gateway orchestrator는 그 값을
turn-daemon PM2 process의 `NODE_OPTIONS`로만 덮어씁니다. API·frontend·worker
build는 공용 `NODE_OPTIONS`를 계속 사용합니다. 전용 heap을 늘릴 때는 runtime
container hard limit과 전체 process RSS를 먼저 확인합니다.
turn-daemon PM2 process의 `NODE_OPTIONS`로만 덮어씁니다. API·frontend·worker
공용 `NODE_OPTIONS`를 계속 사용합니다. Profile의 `vue-tsc`와 Vite build만 더 큰
heap이 필요하면 `PROFILE_FRONTEND_BUILD_NODE_OPTIONS`를 지정합니다. 이 값은
profile frontend build child의 `NODE_OPTIONS`만 덮어쓰며 server package Turbo
build와 배포 후 PM2 process의 heap은 바꾸지 않습니다. 전용 heap을 늘릴 때는
runtime container hard limit과 전체 process RSS를 먼저 확인합니다.
- migration 이후 이전 애플리케이션으로 돌아갈 때 schema 하위 호환성이
유지됩니다.