Dify Stack Presets
Startup 15k-Chunk Dify Stack Preset (8 GB KVM 2)
Fit all 9 Dify containers cleanly inside an 8 GB Hostinger KVM 2 ($4.79/mo) by pinning 2 Celery workers, 2 API workers, and unified pgvector HNSW.
4.8 GB Peak RSS · 2 Celery / 2 API · $4.79/mo KVM 2
Eliminating Redundant Vector Containers on 8 GB
Default Dify installations that spin up Weaviate alongside PostgreSQL immediately consume over 5.1 GB idle before ingesting a single PDF. Switching VECTOR_STORE to pgvector keeps both relational state and 15,000 1536-dim embeddings inside a single tuned Postgres container under 650 MB.
Safe Worker Concurrency Caps
Pinning SERVER_WORKER_AMOUNT=2 and CELERY_WORKER_AMOUNT=2 with gevent concurrency ensures burst document uploads queue cleanly without exceeding 8 GB physical RAM.
Measured Thresholds & Container Limits
| Parameter | Recommended Value | Operational Impact |
|---|---|---|
| VECTOR_STORE | pgvector (Unified) | Saves ~920 MB by avoiding standalone Weaviate |
| CELERY_WORKER_AMOUNT | 2 (gevent) | Prevents OOM during simultaneous PDF chunking |
| SERVER_WORKER_AMOUNT | 2 (gevent) | Handles 15-25 concurrent SSE chatflow sessions |
| Host Node Fit | Hostinger KVM 2 (8 GB) | Leaves ~3.2 GB headroom for Linux page cache |