Skip to main content
FINOPS DOCOCR COMPUTE // PAPERLESS-NGX OCR & PDF/A ARCHIVE STUDIO TESSERACT CONCURRENCY | TIKA + GOTENBERG | BASELINE 2026-11-17
PaperlessNGX
PaperlessNGX Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
OCR & Container Tuning

Redis 7 Memory Limits & OCRmyPDF /tmp Scratch Optimization

Prevent Redis queue growth during 2,000-PDF imports and size tmpfs vs disk-backed /tmp scratch safely.

128-256 MB Redis Maxmemory · 2-4 GB /tmp Scratch Headroom

Redis 7 Memory Limits & OCRmyPDF /tmp Scratch Optimization
Telemetry baseline verified 2026-11-17 by DocOCR Compute.

Never Set volatile-lru on the Celery Broker

Unlike cache-only Redis instances, Paperless-ngx uses Redis 7 as the Celery task broker and result backend. Use maxmemory-policy noeviction with an explicit 128-256 MB ceiling so queued scan jobs are never silently dropped.

Bind-Mounting /tmp Off OverlayFS

On large multi-hundred-page PDFs, Ghostscript temp files inside container writable layers can bloat Docker overlay2. Bind-mount a dedicated host /tmp/paperless scratch path on NVMe.

Measured Thresholds & Container Limits

Batch Ingestion RateRedis maxmemoryPeak /tmp Scratch SpaceScratch Storage Target
20 - 100 PDFs/hr128 MB (noeviction)~1.0 GBContainer /tmp or NVMe
100 - 500 PDFs/hr192 MB (noeviction)~2.5 GBHost NVMe bind mount
500 - 2,000 PDFs/hr256 MB (noeviction)~6.0 GBDedicated NVMe /tmp volume
128-256 MB Redis Maxmemory · 2-4 GB /tmp Scratch Headroom Deploy $6/TB SliceHostinger KVM ($4.79/mo)