Skip to main content
PAPER LEDGER SEATEXIT FINOPS // OPEN WEBUI + DOCLING + QDRANT AUDIT BASELINE: 2026-10-15 | VULTR ($300 CREDIT) + HOSTINGER KVM 4/8 ($9.99-$19.99/MO)
OpenWebUIRAG
OpenWebUIRAG Transparency: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero cost to you (Disclosure).
Cost Models // SeatExit FinOps

Redis 7 WebSocket & Multi-Worker Session Memory Model

A capped 192 MB Redis 7 container eliminates dropped token streams and auth desync when running 2-4 Open WebUI Uvicorn workers.

Measured Unit Economics & Telemetry

Without Redis pub/sub, multi-worker Open WebUI deployments fail intermittently when a browser WebSocket reconnects to a different Uvicorn process than the one streaming the LLM response. Adding a lightweight redis:7-alpine container with a strict 192 MB allkeys-lru cap solves state routing for <220 MB total RSS.

Resource / Billing LineAudited ValueFinOps Impact
Redis 7 Alpine Base RSS~28 MBBefore active WebSocket pub/sub load
Configured maxmemory Cap192 MBProtects host from unbounded cache growth
Per-Active User Session Delta~1.2 - 1.5 MBCovers WebSocket buffers + OIDC cache
Container mem_limit256 MB1.6% of a 16 GB KVM 4 node

Implementation & Configuration Checklist

  1. Bind Redis on Internal Docker Bridge: Do not expose port 6379 publicly; communicate strictly over the internal compose network.
  2. Separate DB 0 and DB 1: Point REDIS_URL to /0 and WEBSOCKET_REDIS_URL to /1 for clean key separation.
  3. Enforce allkeys-lru Eviction: Pass --maxmemory 192mb --maxmemory-policy allkeys-lru in the compose command.
REDIS_URL=redis://redis:6379/0
WEBSOCKET_MANAGER=redis
WEBSOCKET_REDIS_URL=redis://redis:6379/1
REDIS_MAXMEMORY=192mb

Team RAG Infrastructure FAQ

Do we need Redis if UVICORN_WORKERS=1?

A single worker can use in-memory state, but running Redis from day one avoids future refactoring when scaling past 15 seats.

Does Redis store permanent chat history?

No. Chat histories persist in SQLite or PostgreSQL; Redis handles ephemeral WebSocket pub/sub and lock keys.

Related Cost Models Dossiers

OpenWebUIRAG: Exit $30/seat ChatGPT Team with Open WebUI + Qdrant Deploy KVM 4 ($9.99/mo)