fix(kordoc): 파일 크기 제한 삭제, Docker 메모리 상한 4GiB 적용
25MB 파일 크기 제한은 텍스트 PDF(18MB 성공)까지 차단하는 문제. 실제 원인은 이미지 스캔 PDF의 in-memory 파싱 시 메모리 폭발. - extract_worker: 25MB 파일 크기 제한 삭제 - docker-compose: kordoc-service mem_limit 4g + memswap_limit 4g - 텍스트 PDF → 크기 무관 정상 파싱 - 이미지 PDF → 4GiB 초과 시 Docker OOM-kill → 재시작 → 3회 실패 후 failed Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,8 @@ services:
|
||||
- "3100:3100"
|
||||
volumes:
|
||||
- ${NAS_NFS_PATH:-/mnt/nas/Document_Server}:/documents:ro
|
||||
mem_limit: 4g
|
||||
memswap_limit: 4g
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "fetch('http://localhost:3100/health').then(r=>{process.exit(r.ok?0:1)}).catch(()=>process.exit(1))"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user