EP01 SCALING · REDIS 7 QUEUE MODE & BULLMQ WORKERS
n8n Queue Mode & Redis Workers Scaling Guide (2026)
Decouple webhook ingestion from heavy LLM and scraping loops with EXECUTIONS_MODE=queue, redis:7-alpine, and bounded workers — sustaining 100k–500k runs/mo on an $8.79–$14.99/mo VPS with zero execution cap.
1. Zero Execution Cap: 2026 Scaling Cost Math (5 Steps / Run)
SaaS automation platforms bill per execution, credit, or task. Self-hosted n8n in Queue mode scales horizontally across worker containers on flat VPS compute until CPU or RAM saturates. Figures below use published December 2026 US monthly list rates:
| Monthly Volume (5 steps/run) | Self-Hosted Queue (KVM 2) | n8n Cloud | Make.com | Zapier |
|---|---|---|---|---|
| 25,000 runs (125k ops) | $8.79–$14.99/mo | $144.00/mo | $175.00/mo (150k) | $1,198.50/mo (200k) |
| 100,000 runs (500k ops) | $8.79–$14.99/mo | $244.00/mo | $724.00/mo (Pro) | $2,998.50/mo (500k) |
| 200,000 runs (1M ops) | $14.99–$29.99/mo | $444.00/mo | $1,321.00/mo (1M) | $5,098.50/mo (1M) |
| 500,000 runs (2.5M ops) | $29.99/mo (16 GB) | $1,044.00/mo | $3,149.00/mo (3M) | Enterprise quote |
2. Queue Mode Worker & Redis 7 Compose Blueprint (EP01 Kit)
In Queue mode, the main n8n container only serves the editor UI, schedules, and webhook ingestion, pushing job IDs into Redis. Dedicated worker containers pull jobs with bounded concurrency so heavy payloads never freeze incoming webhooks. Every container shares the exact same N8N_ENCRYPTION_KEY and PostgreSQL 17 database:
services:
redis:
image: "${REDIS_IMAGE:-redis:7-alpine}"
profiles: [queue]
restart: unless-stopped
mem_limit: 384m
cpus: 0.5
command:
- redis-server
- --appendonly
- "yes"
- --maxmemory
- "192mb"
- --maxmemory-policy
- noeviction
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
worker:
<<: *n8n
profiles: [queue]
mem_limit: 1280m
cpus: 1.5
command: ["worker", "--concurrency=5"]
environment:
EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
QUEUE_HEALTH_CHECK_ACTIVE: "true"
QUEUE_HEALTH_CHECK_PORT: "5678"
N8N_GRACEFUL_SHUTDOWN_TIMEOUT: "65"
NODE_OPTIONS: --max-old-space-size=896
depends_on:
n8n:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- worker_data:/home/node/.n8n
Activating & Scaling Workers Cleanly
# 1. Set EXECUTIONS_MODE=queue in .env, then start Redis + 1 worker (8 GB VPS)
docker compose --profile queue up -d
# 2. Scale horizontally to 2 workers (10 concurrent jobs) on 8-16 GB hosts
docker compose --profile queue up -d --scale worker=2
3. RAM Sizing, Concurrency & Pitfalls to Avoid
- 2 GB VPS Warning: Do not run Queue mode on 2 GB RAM. Reserve 2 GB strictly for lightweight Single mode; use 8 GB (Hostinger KVM 2) for Postgres 17 + Redis 7 + main + 1–2 workers.
- Match
DB_POSTGRESDB_POOL_SIZEto Worker Count: KeepDB_POSTGRESDB_POOL_SIZE=5per container so 1 main + 2 workers consume at most 15 connections—well inside PostgreSQL 17’s defaultmax_connections=100. - Shared Rate-Limit State Across Workers: Because multiple workers execute concurrently, move API cooldowns (Apify, OpenAI, HubSpot 429s) into a PostgreSQL table rather than in-memory node pauses.
- Audit Workflows Before Scaling: Run StackGuard Security Audit locally to verify webhook signature checks and SSRF/injection boundaries before opening high-concurrency queues.
Affiliate disclosure: Hostinger links are affiliate links; we may earn a commission at no extra cost to you. See Affiliate Disclosure. Published by Oriancy.
Frequently Asked Questions
- When should you switch self-hosted n8n from regular mode to Redis queue mode?
- Enable queue mode once webhook traffic triggers 20–30+ simultaneous runs, heavy enrichment/RAG workflows slow down the n8n editor, or monthly volume crosses 25,000+ executions on an 8 GB host.
- Why must Redis use
--maxmemory-policy noevictionfor n8n queue mode? - BullMQ stores active job queues and distributed locks in Redis. Eviction policies like
allkeys-lrudrop live job metadata under memory pressure, causing silent execution loss. Pairing--appendonly yeswithnoevictionkeeps the queue durable. - How much does 100,000 monthly executions cost on self-hosted n8n queue mode vs n8n Cloud, Make, and Zapier?
- At 100,000 runs/month (500,000 5-step operations), an 8 GB Hostinger KVM 2 VPS runs $8.79/mo promo ($14.99/mo renewal) with zero execution cap, compared to $244/mo on n8n Cloud Pro, $724/mo on Make Pro, and $2,998.50/mo on Zapier.