BF BotFoundry
BotFoundry / 8 Bot Blueprints / n8n-queue-mode-redis
BOTFOUNDRY N8N RUNBOOK • BULLMQ REDIS & POSTGRES PRUNING

BotFoundry n8n Queue Mode, Redis BullMQ & PostgreSQL Sizing Runbook

Single-process SQLite n8n deployments stall whenever bursty CRM webhooks collide with multi-megabyte JSON Code nodes or AI chains. On BotFoundry, we size EXECUTIONS_MODE=queue topologies with dedicated webhook listeners, Redis AOF brokers, and PostgreSQL 16 workers on 8 GB to 32 GB DDR5 KVM slices.

Inspect Hostinger Specs for N8N-BULL via BotFoundry → Compare Vultr Tiers via BotFoundry → Load Preset in BotFoundry RAM Sizer →

BotFoundry Deterministic vCPU, RAM & Guard Matrix (BP-04 // N8N-BULL)

Public rates retrieved 2026-11-12 from official vendor pricing pages cited below; promotional & renewal prices may change — always verify exact specs, term length, and renewal rates on the vendor’s official checkout page.

Concurrency Scale vCPU DDR5 RAM OS / Runtime /dev/shm & Watchdog Guard Public Tier Match (2026-11-12)
Starter Queue (2 Workers) 2 vCPU KVM 8 GB DDR5 Ubuntu 24.04 1-Click n8n Redis AOF + Prune 168h Hostinger KVM 2 ($5.99/mo)
AI Chain & CRM Burst (6 Workers) 4 vCPU KVM 16 GB DDR5 Ubuntu 24.04 Docker MaxOld=2048 + Postgres 16 Hostinger KVM 4 ($10.49/mo)
Agency Multi-Tenant (15 Workers) 8 vCPU KVM 32 GB DDR5 Ubuntu 24.04 NVMe 3x Webhook + PgBouncer Hostinger KVM 8 ($19.99/mo)
High-Throughput Bus (30+ Workers) 8–12 Dedicated VDS 64 GB ECC Ubuntu 24.04 Dedicated Dedicated Cores + WAL Disk UltaHost VDS 64GB ($98/mo)

BotFoundry Unattended Supervisor Snippet (BP-04 // N8N-BULL)

BotFoundry n8n Queue Mode Redis BullMQ memory guard and PostgreSQL execution pruning architecture
BotFoundry n8n Queue Mode Redis BullMQ memory guard and PostgreSQL execution pruning architecture
docker-compose.yml — BotFoundry n8n Queue Mode + Webhook Receiver + Worker Replicas
x-n8n-env: &n8n-env
  DB_TYPE: postgresdb
  EXECUTIONS_MODE: queue
  QUEUE_BULL_REDIS_HOST: redis
  OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS: "true"
  EXECUTIONS_DATA_PRUNE: "true"
  EXECUTIONS_DATA_MAX_AGE: 168

services:
  n8n-main:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    environment: *n8n-env
  n8n-webhook:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    command: webhook
    environment: *n8n-env
  n8n-worker:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    command: worker --concurrency=10
    deploy:
      replicas: 3
      resources:
        limits:
          memory: 1536M
    environment: *n8n-env
  1. 1. Decoupling Fast HTTP 200 Webhook Ingestion from Slow Worker Nodes on BotFoundry

    Stripe, Shopify, and Telegram gateways retry or drop webhooks if your endpoint takes longer than 3–5 seconds to acknowledge. Running dedicated n8n webhook containers enqueues jobs into Redis immediately while background worker replicas process LLM prompts and file buffers asynchronously.

  2. 2. Enforcing EXECUTIONS_DATA_PRUNE=true in BotFoundry PostgreSQL Configurations

    Saving full JSON execution snapshots across 50,000 daily runs bloats execution_entity by 15–25 GB per week. Set EXECUTIONS_DATA_SAVE_ON_SUCCESS=none on high-frequency workflows and prune completed records older than 168 hours (7 days).

  3. 3. Co-Locating Vector Stores or Browserless Sidecars Under BotFoundry 16 GB–32 GB Tiers

    Adding Qdrant/pgvector embeddings or a headless Chromium container beside n8n adds 2.5–4.0 GB of steady resident memory — making the jump from 8 GB (KVM 2) to 16 GB (Hostinger KVM 4) essential.

BotFoundry Troubleshooting & Sizing FAQ (BP-04 // N8N-BULL)

How much RAM does BotFoundry budget per n8n worker replica at concurrency 10?

We allocate 1.0 to 1.5 GB RAM per n8n worker container (--concurrency=10) with explicit Docker memory: 1536M caps so a single runaway JavaScript Code node cannot crash PostgreSQL.

Why does BotFoundry require Redis --appendonly yes for n8n Queue Mode?

Without Append-Only File (AOF) persistence, an unplanned container restart wipes every queued webhook payload waiting in BullMQ memory.

Does Hostinger KVM support Ubuntu 24.04 1-Click n8n Queue Mode templates?

Yes — Hostinger offers official 1-Click n8n and Queue Mode OS templates on KVM 1/2/4/8 plans; verify current promotional rates on their official checkout page.

Related BotFoundry Unattended Sizing Blueprints

Hostinger (BP-04 BotFoundry) From $4.99/mo
Inspect Specs on BotFoundry →