From 62be895b9ec5a80c714b5f7735a75f5a685079fd Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 14 Apr 2026 09:55:55 +0200 Subject: [PATCH] fix(ocr): drop uvicorn workers from 2 to 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two workers × ~5 GB Surya model load = ~10 GB required, exceeding the 8 GB memory cap and causing OOM on the first /train call. Two OS processes also cause model-state divergence after training, contradicting the single-node constraint documented in ADR-001. Co-Authored-By: Claude Sonnet 4.6 --- ocr-service/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocr-service/Dockerfile b/ocr-service/Dockerfile index 7e5cc939..01b8ebfa 100644 --- a/ocr-service/Dockerfile +++ b/ocr-service/Dockerfile @@ -23,4 +23,4 @@ COPY . . EXPOSE 8000 -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"] +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]