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

Replacing Weaviate With pgvector on 8 GB Dify VPS Nodes

Reclaim 920 MB to 2.2 GB of instant baseline RAM by switching Dify default Docker Compose from Weaviate to unified pgvector.

-1.1 GB Baseline RSS · Single DB Backup · 8 GB Safe

Replacing Weaviate With pgvector on 8 GB Dify VPS Nodes
Telemetry baseline verified 2026-10-13 by WorkflowGraph Lab.

The Hidden Cost of Default Weaviate

Dify ships Weaviate as a default profile option, which spawns a separate Go/vector process that allocates significant heap even when knowledge bases are small. On an 8 GB KVM 2 VPS, that single container consumes 15% of total machine RAM.

Clean Migration Path

Setting VECTOR_STORE=pgvector in .env lets the existing Postgres container store HNSW indexes natively, freeing over 1 GB for Celery ingestion bursts.

Measured Thresholds & Container Limits

MetricWeaviate Defaultpgvector Unified
Idle Vector Container RAM920 - 1,450 MB0 MB extra (inside db)
50k Chunk RAM Footprint~1.9 GB Weaviate + 450 MB DB~1.15 GB combined Postgres
Backup & Snapshot Simplicity2 separate volume snapshotsSingle pg_dump / volume
Recommended Cutoff>= 150k vectors or hybrid BM251k - 140k chunks on 8-16 GB VPS
-1.1 GB Baseline RSS · Single DB Backup · 8 GB Safe Deploy KVM ($4.79+/mo)Make.com 10k Free Ops