Dify Stack Presets
Production 65k-Chunk Dify Stack Preset (16 GB KVM 4)
Standard 45-session team deployment running 4 Celery RAG workers, 4 Gunicorn API workers, pgvector HNSW, and Make.com hybrid triggers on 16 GB RAM.
9.1 GB Peak RSS · 4 Celery / 4 API · $9.99/mo KVM 4
Why 16 GB Is the Production Sweet Spot
At 65,000 chunks and 45 concurrent workflow runs, total stack RSS approaches 9.1 GB during peak document re-indexing. A 16 GB Hostinger KVM 4 node ($9.99/mo intro) provides 7 GB of clean Linux page cache for Postgres HNSW traversal.
Hybrid Trigger Offloading
Routing Gmail, HubSpot, and Slack webhook listeners through Make.com Pro keeps Dify Celery workers dedicated strictly to RAG chunking and LLM orchestration.
Measured Thresholds & Container Limits
| Parameter | Recommended Value | Operational Impact |
|---|---|---|
| Knowledge Base Scale | 65,000 chunks (1536-dim) | pgvector HNSW index uses ~1.4 GB RSS |
| Postgres shared_buffers | 4096 MB (25% of 16 GB) | Keeps hot HNSW graph pages pinned in memory |
| CELERY_WORKER_AMOUNT | 4 (autoscale 2-4) | Ingests 100+ page technical manuals rapidly |
| Host Node Fit | Hostinger KVM 4 (16 GB) | 94% cheaper than $159/mo Dify Cloud Team |