fix(runtime): 턴 데몬 전용 heap 상한을 추가

공용 빌드·API heap과 턴 데몬 heap을 분리하고 Compose 안전 검증과 운영 문서를 함께 갱신한다.
This commit is contained in:
2026-08-16 06:48:42 +00:00
parent a7c7204915
commit 1d25540b1a
5 changed files with 21 additions and 3 deletions
+3
View File
@@ -7,6 +7,7 @@ const safeRuntime = {
environment: {
CORE_SOURCE_MODE: 'clone',
NODE_OPTIONS: '--max-old-space-size=1536',
TURN_DAEMON_NODE_OPTIONS: '--max-old-space-size=3072',
RAYON_NUM_THREADS: '2',
GATEWAY_IMAGE_UPLOAD_URL: 'https://sam-image.hided.net',
GATEWAY_IMAGE_UPLOAD_SECRET_FILE: '/run/secrets/image_upload_core2026_secret',
@@ -87,10 +88,12 @@ test('rejects missing or excessive build memory and parallelism limits', () => {
environment: {
CORE_SOURCE_MODE: 'clone',
NODE_OPTIONS: '--max-old-space-size=4096',
TURN_DAEMON_NODE_OPTIONS: '--max-old-space-size=8192',
RAYON_NUM_THREADS: '8',
},
};
const errors = validateComposeModel({ services: { runtime } }, 'production');
assert.ok(errors.some((error) => error.includes('Node heap limit')));
assert.ok(errors.some((error) => error.includes('turn daemon Node heap limit')));
assert.ok(errors.some((error) => error.includes('Rayon thread count')));
});