From 35af85c7f2df23f6fe04fe909589cd337c1d8320 Mon Sep 17 00:00:00 2001 From: hyungi Date: Sat, 20 Jun 2026 05:24:04 +0000 Subject: [PATCH] =?UTF-8?q?ops(compose):=20tier-0=20OOM=20=EB=AC=B4?= =?UTF-8?q?=EC=9E=A5=20=E2=80=94=20postgres=C2=B7fastapi=20oom=5Fscore=5Fa?= =?UTF-8?q?dj=3D-900=20+=20mineru=20mem=5Flimit=2016g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 호스트 30GB 빠듯(여유 <1GB·스왑 full)에서 mineru VLM 스파이크가 글로벌 OOM 유발 시 커널이 가해자 대신 postgres(prod DB)/fastapi(앱+스케줄러 SPOF)를 reap 하던 비대칭 제거. tier-0 = -900(보호), mineru = 16g cap(steady ~12GB)로 봉쇄. mineru 는 docker update 로 live 선적용. Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index a3bae71..4e692db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,8 @@ services: timeout: 5s retries: 5 restart: unless-stopped + # 2026-06-20 tier-0 무장: 글로벌 OOM 시 커널이 postgres(prod DB)를 reap 하지 않도록. + oom_score_adj: -900 kordoc-service: build: ./services/kordoc @@ -59,6 +61,7 @@ services: # 동기 do_parse 버그 회피 위해 server.py 는 async aio_do_parse 사용. 포트 3301. mineru-service: build: ./services/mineru + mem_limit: 16g # 2026-06-20: VLM 스파이크 봉쇄 (steady ~12GB) — 호스트 30GB 글로벌 OOM 차단 ports: - "127.0.0.1:3301:3301" expose: @@ -173,6 +176,7 @@ services: fastapi: build: ./app + oom_score_adj: -900 # 2026-06-20 tier-0 무장 (앱+스케줄러 SPOF 보호) ports: - "100.110.63.63:8000:8000" volumes: