fix(runtime): bound build memory and parallelism

This commit is contained in:
2026-08-04 16:18:45 +00:00
parent cf0d18f017
commit 41214b03df
5 changed files with 47 additions and 2 deletions
+6
View File
@@ -28,6 +28,12 @@ runtime은 기본적으로 memory/swap 각각 4 GiB, CPU 4개, PID 256개 상한
무제한으로 두지 않습니다. PM2 process/restart 수가 예상보다 증가하면 로그 수집보다
runtime 중지가 우선입니다.
초기 빌드와 profile worktree 빌드는 기본 Node heap 1536 MiB,
`RAYON_NUM_THREADS=2` 안에서 실행됩니다. `RUNTIME_NODE_OPTIONS`의 heap 상한은
512~2048 MiB, `RUNTIME_RAYON_NUM_THREADS`는 1~4만 허용됩니다. 이는 빌드 중
container hard limit에 먼저 닿는 것을 막고 실행 process에도 같은 상한을
적용합니다.
`scripts/check.sh`는 example placeholder, 짧은 비밀값, 잘못된 domain/email,
repository credential 조합을 실제 값 출력 없이 거부합니다. 최소 길이는 DB·Redis
password 24자, game/bootstrap token 32자, 최초 관리자 password 16자입니다.