Skip to main content
FINOPS WORKFLOWGRAPH LAB // DIFY 9-CONTAINER STACK TELEMETRY DOCKER COMPOSE OVERRIDE | PGVECTOR HNSW + CELERY | BASELINE 2026-10-13
DifyStackRAM
DifyStackRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Dify Stack Presets

High-Concurrency SSE Chatflow API & Nginx Streaming Preset

Tune Gunicorn gevent workers, Nginx proxy buffering, and Redis pub/sub for 100-200 simultaneous streaming chatflow users.

200 Concurrent SSE · 8-10 Gunicorn Gevent · Redis LRU

High-Concurrency SSE Chatflow API & Nginx Streaming Preset
Telemetry baseline verified 2026-10-13 by WorkflowGraph Lab.

Memory Cost of Open SSE Connections

Sync Gunicorn workers block an entire 350 MB Python process for every streaming LLM response. Using SERVER_WORKER_CLASS=gevent lets each worker multiplex dozens of open SSE sockets while keeping api memory predictable.

Redis Pub/Sub Headroom

Ensure Redis maxmemory is explicitly capped (for example 512 MB to 1 GB) with allkeys-lru so stale chat state never leaks into host swap.

Measured Thresholds & Container Limits

Container / VariableTuned ValuePurpose
SERVER_WORKER_CLASSgeventNon-blocking greenlets for long-lived SSE
SERVER_WORKER_AMOUNT8 - 10 workersHandles 150-200 concurrent token streams
NGINX proxy_bufferingoff (SSE)Immediate first-token delivery to browser
Redis maxmemory-policyallkeys-lruBounds session cache growth under traffic spikes
200 Concurrent SSE · 8-10 Gunicorn Gevent · Redis LRU Deploy KVM ($4.79+/mo)Make.com 10k Free Ops