pgvector & Queue RAM Calculator →
Size combined Postgres HNSW memory, Redis buffers, and worker containers.
Architect crash-proof self-hosted n8n clusters splitting main UI, stateless webhook ingress, Redis BullMQ brokers, and horizontal worker containers—paired with PostgreSQL execution pruning, secret rotation, and hidden-origin Cloudflare Tunnel ingress.
| Platform | Entry Cloud Floor | Queue-Ready Tier | Ops Setup Score | Ideal Hosting Profile | Live Rates |
|---|---|---|---|---|---|
| Railway Managed Container PaaS for Self-Hosted n8n | $5/month | Pro Queue-Mode Cluster ($20/mo) | 4/10 friction | Fastest self-hosted n8n queue-mode cloud deployment | Pricing → |
| DigitalOcean Flat-Rate Cloud Droplets & Managed Postgres | $12/month | General 4vCPU / 8GB Queue Node ($48/mo) | 5/10 friction | High-bandwidth self-hosted automation with predictable VPS caps | Pricing → |
| Hostinger VPS Entry KVM VPS & Prebuilt n8n Templates | $6.99/month | KVM 4 (4 vCPU / 16 GB RAM) ($10.99/mo) | 4/10 friction | Solo builders & agencies running cost-capped n8n nodes | Pricing → |
| Cloudways Managed Multi-Cloud Server Orchestrator | $14/month | DO8GB Managed Agency Cluster ($99/mo) | 3/10 friction | Agencies wanting self-hosted economics without raw Linux ops | Pricing → |
Runway weight equation: cluster_reliability = (0.35 * redis_aof_durability) + (0.30 * webhook_worker_isolation) + (0.20 * automated_pg_backup) + (0.15 * memory_headroom) · Audited 2026-11-22 · Sources archived in /llms-full.txt.
| Platform | Entry Tier Cap | Overage Unit | 12m Baseline |
|---|---|---|---|
| Default SQLite Single Node | >20 RPS webhook burst | SQLITE_BUSY 502 failures | 19.6% lost events |
| Unpruned Postgres Execution Logs | 200k runs w/ binary JSON | 100% NVMe disk lockup in 45d | Total cluster outage |
| Lost N8N_ENCRYPTION_KEY | Container rebuild w/o vault | All OAuth credentials unreadable | 16-30 hrs re-auth |
| Exposed Origin IPv4 + Port 5678 | Public DNS A record leak | Direct DDoS & bot scans | Zero via CF Tunnel |
Size combined Postgres HNSW memory, Redis buffers, and worker containers.
Compare 495 RPS queue durability against 34 RPS single-node SQLite crashes.
Model retainer gross margins across isolated per-client self-hosted nodes.
Two operational pitfalls account for almost every self-hosted n8n emergency page. First, default in-memory binary handling (N8N_DEFAULT_BINARY_DATA_MODE=default) buffers PDFs, audio recordings, and images straight inside V8 RAM; ten concurrent 40 MB webhook files immediately trigger Linux OOM-killer crashes. Switching to N8N_DEFAULT_BINARY_DATA_MODE=filesystem backed by a shared volume or S3 external storage flattens worker memory draw dramatically.
Second, storing full JSON execution inputs and outputs for 500,000 monthly webhooks bloats PostgreSQL tables past 60 GB within weeks. Pruning successful low-risk runs after 7 days while archiving critical Stripe/ERP audit hashes in a lean custom SQL table keeps database size below 4 GB indefinitely.
Yes. Running Docker Compose with n8n-main, n8n-webhook, 2-4 n8n-workers, Redis, and PostgreSQL inside a single 8 GB to 16 GB host unlocks full event-loop isolation and ~960-1,120 runs/min without multi-node Kubernetes complexity.
BullMQ tracks active job locks in Redis; stalled jobs whose worker fails to renew its heartbeat automatically re-enter the queue after QUEUE_WORKER_LOCK_DURATION expires and are picked up by healthy workers.
Credentials stored in PostgreSQL are encrypted symmetrically using N8N_ENCRYPTION_KEY; if a worker boots with a mismatched or missing key, every authenticated API node fails immediately with decryption errors.