2026 ブラックフライデー開催中:RackNerd 4GB VPS 年額$47.98(永久同額)・ElevenLabs 55%OFF・Amazon ローカルAI機材 実測セール一覧を見る →
Lab Essay #09 · Scaling Thresholds8 min readReal Lab Measurements

When Single-Container n8n Actually Breaks: The Exact Threshold for Redis Queue Mode & Multi-Worker Scaling

TL;DR

Do NOT deploy n8n Queue Mode + Redis on day one for 10,000 runs/month. A single n8n container paired with PostgreSQL 16 on a 4 GB KVM VPS cleanly absorbs **40,000–60,000 I/O-bound AI webhook executions/month** because Node.js async I/O waits effortlessly on external LLM APIs. Upgrade to Redis Queue Mode + dedicated worker containers ONLY when you hit one of three hard symptoms: webhook HTTP 504 timeouts during batch bursts, UI freezes (>1.5s clicks) while heavy loops execute, or >25 concurrent heavy data-transform jobs.

NodeBudget cost and RAM calculator showing exact vCPU and RAM requirements scaling with monthly workflow runs
Figure 1 · Sizing RAM & Tier Before Adding Redis Complexity: Most scaling bottlenecks blamed on "single-container n8n" are actually SQLite locks or under-provisioned 1–2 GB RAM nodes—fix Postgres and swap before introducing Redis + multi-worker orchestration.

1. The Over-Engineering Trap: Premature Queue Mode

Every week someone running 3,000 executions/month copies an enterprise Kubernetes or 5-container Redis Queue Mode tutorial, then spends their Sunday debugging mismatched `N8N_ENCRYPTION_KEY` values across workers or orphaned BullMQ jobs after a Redis restart.

Here is the physics people forget: if 95% of your workflow wall-clock time is spent awaiting HTTP responses from OpenAI, Anthropic, Slack, or HubSpot, Node.js’s single event loop handles dozens of simultaneous in-flight promises with negligible CPU. You only saturate a single n8n process when workflows perform heavy synchronous CPU work (parsing giant 50 MB CSVs, complex regex transforms, or massive JSON merges) or receive sudden 100-request/second webhook spikes.

2. Clean 8 GB VPS Queue-Mode Topology (Main + 2 Workers + Redis)

Once you genuinely cross that threshold, step up to an 8 GB RAM node (Hostinger KVM 2 or DigitalOcean 8 GB) so Main (`1g`), Worker 1 (`1.5g`), Worker 2 (`1.5g`), PostgreSQL 16 (`900m`), and Redis (`256m`) each run with comfortable headroom and zero swap thrashing:

# Add to BOTH n8n (main) and n8n-worker services in docker-compose.yml
environment:
  - EXECUTIONS_MODE=queue
  - QUEUE_BULL_REDIS_HOST=redis
  - QUEUE_BULL_REDIS_PORT=6379
  - QUEUE_HEALTH_CHECK_ACTIVE=true
  - N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}   # MUST be identical across all workers!
  - OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true

Related Engineering Deep-Dives