OCR & Container Tuning
Sizing Gunicorn Web Workers & Whoosh Search Index Memory
Scale PAPERLESS_WEBSERVER_WORKERS for single-user home labs vs 15-person accounting teams without duplicating Python RSS unnecessarily.
~220 MB Base + 165 MB / Gunicorn Worker · Whoosh Memory Cache
Whoosh Index Growth With Document Corpus
Paperless-ngx maintains a Whoosh full-text index across extracted OCR text. For 250k+ documents, search queries load index segments into RAM, making 1,024-1,536 MB limits critical for the webserver container.
Separate Web Responsiveness From OCR Load
Keep at least 1 CPU core equivalent headroom or ionice/nice priority on consumer tasks so heavy Tesseract OCR batches never stall UI document previews.
Measured Thresholds & Container Limits
| Active UI Users | WEBSERVER_WORKERS | Estimated webserver RSS | Container Limit |
|---|---|---|---|
| 1 - 2 home users | 1 - 2 | 380 - 540 MB | 768M |
| 3 - 10 team users | 2 - 3 | 550 - 740 MB | 1024M |
| 10 - 25 heavy search | 4 | 880 - 1,100 MB | 1536M |