Dify Stack Presets
Enterprise 250k-Chunk 16-Worker Dify Preset (32+ GB VDS)
Maximum 200-run concurrency blueprint with 16 Celery workers, 10 Gunicorn API workers, dedicated CPU cores, and strict per-container memory ceilings.
26.4 GB Peak RSS · 16 Celery / 10 API · Dedicated VDS
Isolating CPU-Bound Ingestion From Chatflows
At 16 Celery workers and 200 concurrent runs, shared vCPU burstable plans suffer scheduler latency spikes. Dedicated VDS cores ensure vector similarity search and SSE token streaming stay sub-100ms.
Connection Pool Discipline
Every Gunicorn and Celery worker opens persistent database sessions; raising PGVECTOR_MAX_CONNECTIONS to 200 prevents operational errors under load.
Measured Thresholds & Container Limits
| Parameter | Recommended Value | Operational Impact |
|---|---|---|
| Chunks & Concurrency | 250k chunks / 200 runs | Requires 8 dedicated cores to avoid CPU steal |
| CELERY_WORKER_AMOUNT | 16 (2 queues) | Separates real-time workflow tasks from PDF OCR |
| PGVECTOR_MAX_CONNECTIONS | 200 connections | Prevents pool exhaustion across 26 workers |
| Host Node Fit | UltaHost VDS 32 GB | Zero noisy-neighbor steal during peak hours |