Live 60s voucher poolNon-EU billing addresses automatically receive 0% VAT (save ~16% off listed German gross prices; UK 20%, CH 8.1%).
AI & Automation VPS · 9 min read · UPDATED 2026-12-04

Best VPS for n8n, Dify, Supabase & Open WebUI (2026): RAM Sizing, Compose Stack & Backups

API-driven AI stacks—n8n queue workflows, Dify RAG pipelines, self-hosted Supabase, Open WebUI, and Qdrant—rarely need cloud GPUs, yet fail quickly when multi-container RAM envelopes or 4K NVMe IOPS are undersized. Here is verified 2026 sizing across 8 GB, 16 GB, and 32 GB servers, a runnable n8n + pgvector + Redis Compose stack, and automated backup automation.

⚡ Executive Summary & Key Takeaways
  • Verified Stack RAM Envelopes: n8n + Postgres + Redis (Queue) uses 1.8 – 3.5 GB and Open WebUI + LiteLLM uses 2.0 – 4.0 GB (fitting 8 GB RS 1000 G12.5), whereas Dify Standalone + Qdrant (6.0 – 11.0 GB) and the Full Combined Stack (14.0 – 22.0 GB) require 16 GB RS 2000 G12.5 or 32 GB VPS 4000 G12.5.
  • Honest 76%–80% Savings vs. Full AI SaaS: Replacing n8n Cloud Pro + Supabase Pro + Dify Pro (~$149–$160/mo) with 16 GB RS 2000 G12.5 (€31.35/mo Yr 1 w/ 6875nc / €34.20/mo Yr 2+) or 32 GB VPS 4000 G12.5 (€34.93/mo Yr 1 = €419.21/yr w/ 6879nc / €38.11/mo Yr 2+) removes execution and vector row caps under strict EU GDPR residency.
  • Production Guardrails Built In: Enforce mem_limit + memswap_limit per container, tighten n8n’s default 14-day pruning (EXECUTIONS_DATA_MAX_AGE=168 + EXECUTIONS_DATA_PRUNE_MAX_COUNT), and schedule atomic pg_dump + Qdrant REST snapshots.
RS 2000 G12.5 · Live Synced Voucher1 Month Free

Root Server 2000 G12.5

Instant €34.20 net (€40.70 incl. 19% VAT) savings with 1 month free voucher.

6875nc17948453690
Backup pool:
Redeem in empty cart (do not pre-add server)
2026 Self-Hosted AI and DevOps Stack RAM Sizing Chart: n8n, Open WebUI, Coolify, Mailcow, Supabase, Dify and Full Stack fit across Netcup 8 GB, 16 GB and 32 GB servers
Figure: Production Docker RAM envelopes for n8n, Open WebUI, Coolify, Mailcow, Supabase, and Dify mapped to 8 GB / 16 GB / 32 GB G12.5 server tiers.

1. Verified RAM, Core & NVMe Sizing Matrix (8 GB vs. 16 GB vs. 32 GB)

Most self-hosted AI crashes happen because operators size RAM for idle Node.js containers rather than peak RAG chunking and microservice overhead. Per official n8n and Open WebUI documentation, lightweight API orchestrators run cleanly inside 1.8 – 4.0 GB. By contrast, self-hosted Supabase launches a 12-container stack (Postgres, GoTrue, PostgREST, Realtime, Storage, Kong, Studio) needing 4.0 – 8.0 GB, and Dify’s Docker Compose stack (API, Celery workers, code sandbox, plugin daemon, Postgres, Redis, and Qdrant/pgvector) consumes 6.0 – 11.0 GB under active document ingestion.

Match your exact container footprint to the verified memory envelopes below (identical to our sizing chart above):

2026 Self-Hosted AI & Automation Stack RAM Contract & Netcup G12.5 Fit (0% VAT Net)
Self-Hosted AI / Data StackProduction RAM EnvelopeRecommended Server TierYr 1 Voucher → Yr 2+ Net
n8n + Postgres + Redis (Queue Mode)1.8 – 3.5 GBVPS 1000 or RS 1000 G12.5 (8 GB)€11.17 / €15.22 → €12.18 / €18.26
Open WebUI + LiteLLM (External API)2.0 – 4.0 GBVPS 1000 or RS 1000 G12.5 (8 GB)€11.17 / €15.22 → €12.18 / €18.26
Self-Hosted Supabase (Full Docker)4.0 – 8.0 GBRS 1000 (8G min) → RS 2000 G12.5 (16G rec)€15.22 → €31.35 (Yr 2+: €18.26 / €34.20)
Dify Standalone + Qdrant / pgvector6.0 – 11.0 GBRS 2000 G12.5 (8 Ded. EPYC · 16 GB DDR5)€31.35 Yr 1 (6875nc) → €34.20 Yr 2+
Full Stack (Dify + Supabase + n8n + Open WebUI)14.0 – 22.0 GBRS 2000 (16G w/ zram) → VPS 4000 / RS 4000 (32G)€31.35 – €34.93 Yr 1 (RS 4000: €64.98)
📌 Why 4K NVMe IOPS & Zero CPU Steal Beat Renting Idle GPUs

When LLM tokens stream from OpenAI, Anthropic, Gemini, or DeepSeek APIs, latency bottlenecks shift to local PDF parsing, HNSW vector index fsync writes, and PostgreSQL JSONB commits. Dedicated Zen 5 cores on RS 2000 G12.5 deliver ~2,050–2,290 Geekbench 6 single-core and 83k–172k 4K NVMe IOPS (RS 1000/2000 YABS Analysis).

2. Apples-to-Apples 12-Month TCO: Full AI Stack on 16 GB / 32 GB VPS vs. SaaS & Cloud

To avoid skewed comparisons, a full multi-service AI stack (14.0 – 22.0 GB RAM) must be benchmarked against 16 GB and 32 GB servers — never an 8 GB instance that can only host n8n + Open WebUI. Combining managed starter-pro plans (n8n Cloud Pro ~$50–$60/mo + Supabase Pro $25–$40/mo + Dify Professional $59/mo) totals ~$149–$160/mo (~€137–€147/mo) before extra execution packs, while an equivalent 16 GB AWS m7i.xlarge node with 250 GB gp3 storage and 1 TB outbound transfer reaches ~$256/mo (~€235/mo).

All figures below exclude identical LLM API token usage and show 0% VAT net pricing (1 EUR ≈ 1.09 USD; check local VAT in our VAT Calculator or compare hardware in our VPS Value Comparator):

12-Month Infrastructure TCO for Multi-Service AI Stacks (0% VAT Net EUR)
Deployment OptionRAM & Compute ScopeMonthly Net Cost12-Month TotalSavings vs. Full SaaS
Managed SaaS Bundle (n8n Pro + Supabase Pro + Dify Pro)Capped workflow runs, seats & vector rows~$149–$160 (~€137–€147)~€1,640–€1,760Baseline Full SaaS
AWS EC2 m7i.xlarge (4 vCPU / 16 GB) + 250G gp3 + 1 TB egress16 GB dedicated cloud + metered egress~$256 (~€235)~€2,820Hyperscaler baseline
Hetzner Dedicated CCX23 (4 Ded. vCPU / 16 GB / 160 GB NVMe)Full 16G stack · 20 TB EU (€1/TB over)€86.49/mo (incl. IPv4)€1,037.88~37%–41% vs. SaaS
Netcup RS 2000 G12.5 (8 Ded. EPYC / 16 GB / 256 GB)Full stack (w/ zram) · 2.5G EU Flat€31.35 Yr 1 → €34.20 Yr 2+€376.20 Yr 1 (€410.40 Yr 2+)~76%–80% saved
Netcup VPS 4000 G12.5 (12 vCores / 32 GB / 512 GB)32 GB unthrottled multi-stack headroom€34.93 Yr 1 → €38.11 Yr 2+€419.21 Yr 1 (€457.32 Yr 2+)~74%–76% saved
Netcup RS 1000 G12.5 (4 Ded. EPYC / 8 GB / 128 GB)*Light stack only*: n8n + Open WebUI€15.22 Yr 1 → €18.26 Yr 2+€182.60 Yr 1 (€219.12 Yr 2+)*Light-tier starter*

3. Runnable Production docker-compose.yml: Queue-Mode n8n + pgvector + Redis

Unbounded Node.js workers or PDF parsers are the #1 cause of overnight OOM kills that corrupt PostgreSQL. Before starting Docker on an 8 GB RS 1000 or 16 GB RS 2000, enable zstd compressed zram (zram-size = ram / 2 via systemd-zram-generator) so embedding spikes compress in DDR5 rather than thrashing NVMe.

Save a .env file (POSTGRES_PASSWORD, N8N_ENCRYPTION_KEY, N8N_HOST) alongside this complete, production-ready docker-compose.yml featuring persistent named volumes, healthchecks, Redis BullMQ queue offloading, and hard mem_limit + memswap_limit ceilings:

# Production Queue-Mode n8n + pgvector (PG16) + Redis 7 stack (docker-compose.yml)
services:
  postgres:
    image: pgvector/pgvector:pg16
    restart: unless-stopped
    mem_limit: 2g
    memswap_limit: 2560m
    shm_size: 512m
    environment:
      POSTGRES_USER: ${POSTGRES_USER:-n8n}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set strong password in .env}
      POSTGRES_DB: ${POSTGRES_DB:-n8n}
    volumes:
      - pg_data:/var/lib/postgresql/data
    command: >
      postgres -c shared_buffers=512MB -c effective_cache_size=1536MB
      -c work_mem=16MB -c maintenance_work_mem=256MB -c max_connections=120
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-n8n} -d ${POSTGRES_DB:-n8n}"]
      interval: 10s
      timeout: 5s
      retries: 5

  redis:
    image: redis:7-alpine
    restart: unless-stopped
    mem_limit: 512m
    memswap_limit: 512m
    volumes:
      - redis_data:/data
    command: redis-server --appendonly yes --maxmemory 384mb --maxmemory-policy noeviction
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 3s
      retries: 5

  n8n:
    image: n8nio/n8n:latest
    restart: unless-stopped
    mem_limit: 1536m
    memswap_limit: 2g
    ports:
      - "127.0.0.1:5678:5678"
    environment: &n8n_env
      DB_TYPE: postgresdb
      DB_POSTGRESDB_HOST: postgres
      DB_POSTGRESDB_PORT: 5432
      DB_POSTGRESDB_DATABASE: ${POSTGRES_DB:-n8n}
      DB_POSTGRESDB_USER: ${POSTGRES_USER:-n8n}
      DB_POSTGRESDB_PASSWORD: ${POSTGRES_PASSWORD}
      N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY:?set 32-char random key in .env}
      N8N_HOST: ${N8N_HOST:-n8n.example.com}
      WEBHOOK_URL: https://${N8N_HOST:-n8n.example.com}/
      EXECUTIONS_MODE: queue
      OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS: "true"
      QUEUE_BULL_REDIS_HOST: redis
      QUEUE_BULL_REDIS_PORT: 6379
      EXECUTIONS_DATA_PRUNE: "true"
      EXECUTIONS_DATA_MAX_AGE: 168
      EXECUTIONS_DATA_PRUNE_MAX_COUNT: 25000
      NODE_OPTIONS: "--max-old-space-size=1152"
    volumes:
      - n8n_data:/home/node/.n8n
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy

  n8n-worker:
    image: n8nio/n8n:latest
    command: worker --concurrency=10
    restart: unless-stopped
    mem_limit: 1536m
    memswap_limit: 2g
    environment: *n8n_env
    volumes:
      - n8n_data:/home/node/.n8n
    depends_on:
      n8n:
        condition: service_started

volumes:
  pg_data:
  redis_data:
  n8n_data:

4. Vector Store Selection (pgvector vs. Qdrant), Execution Pruning & Firewall Hardening

Pairing the Compose foundation above with four operational practices keeps vector search responsive and prevents silent NVMe exhaustion:

  • pgvector vs. Qdrant Cutoff: Up to ~500k–1M embeddings, keeping HNSW indexes inside PostgreSQL/Supabase pgvector avoids running a second storage engine. Above 1M vectors or heavy payload filtering, deploy Qdrant with on_disk: true memory-mapped vectors on RAID NVMe.
  • Tightening Modern n8n Execution Pruning: Current n8n releases already enable EXECUTIONS_DATA_PRUNE=true by default with a 336-hour (14-day) retention window. However, high-throughput webhook agents logging LLM JSON responses or tool traces can still bloat Postgres past 50 GB inside two weeks — tighten EXECUTIONS_DATA_MAX_AGE=168 (7 days), cap EXECUTIONS_DATA_PRUNE_MAX_COUNT=25000, and set N8N_DEFAULT_BINARY_DATA_MODE=filesystem (or S3/R2).
  • Bind Localhost & Lock the SCP Firewall: Bind app ports to 127.0.0.1 behind Caddy or Traefik TLS (see our Mailcow, Coolify & Proxmox Guide and Ubuntu /64 IPv6 Guide), and block direct public access to 5432 (Postgres), 6379 (Redis), and 6333 (Qdrant) in Netcup’s SCP Hypervisor Firewall.

5. Automated pg_dump + Qdrant Snapshot Backups & Zero-Downtime Upgrades

Never rely solely on host-level disk snapshots for active transactional databases or HNSW vector graphs. Schedule an atomic nightly dump of PostgreSQL (pg_dump -Fc), trigger Qdrant’s consistent REST snapshot API, and upgrade worker containers before the main UI node so in-flight webhooks never drop:

#!/usr/bin/env bash
# /usr/local/sbin/backup-ai-stack.sh (run nightly via systemd timer or cron)
set -euo pipefail
STAMP=$(date +%F_%H%M)
BACKUP_DIR="/var/backups/ai-stack/$STAMP"
mkdir -p "$BACKUP_DIR"

# 1. Consistent compressed PostgreSQL + pgvector dump (zero lock downtime):
docker compose -f /opt/ai-stack/docker-compose.yml exec -T postgres \
  pg_dump -U n8n -Fc n8n > "$BACKUP_DIR/n8n_pg16.dump"

# 2. Trigger atomic Qdrant collection snapshot over localhost API (if running Qdrant):
if curl -fsS http://127.0.0.1:6333/healthz >/dev/null 2>&1; then
  SNAP_NAME=$(curl -fsS -X POST http://127.0.0.1:6333/snapshots | grep -oE '"name":"[^"]+"' | head -n1 | cut -d'"' -f4)
  curl -fsS "http://127.0.0.1:6333/snapshots/$SNAP_NAME" -o "$BACKUP_DIR/$SNAP_NAME"
fi

# 3. Retain 7 local days & sync encrypted archive off-site (e.g. Cloudflare R2 / Borg / Restic):
find /var/backups/ai-stack -maxdepth 1 -mindepth 1 -mtime +7 -exec rm -rf {} +

# --- Zero-downtime Queue-Mode n8n container upgrade sequence ---
# cd /opt/ai-stack && docker compose pull
# docker compose up -d --no-deps n8n-worker   # roll workers first while webhook UI stays up
# docker compose up -d --no-deps n8n          # roll main webhook/UI process (<3s reconnect)

🔧 Companion Interactive Calculator for Your Setup:

Frequently Asked Questions (FAQ)

Can an 8 GB server (RS 1000 G12.5) run Dify, Supabase, and n8n together?

No — running all three plus Open WebUI demands 14.0 – 22.0 GB RAM, which will trigger OOM kills on 8 GB. Use 8 GB RS 1000 G12.5 (€15.22 Yr 1 / €18.26 Yr 2+) for n8n + Postgres + Redis (1.8 – 3.5 GB) + Open WebUI (2.0 – 4.0 GB); choose 16 GB RS 2000 G12.5 (€31.35 Yr 1 / €34.20 Yr 2+) for Dify + Qdrant (6.0 – 11.0 GB) or full-stack setups with zram, or 32 GB VPS 4000 G12.5 (€34.93 Yr 1, €419.21/yr) for comfortable multi-stack headroom.

Should I pick RS 2000 G12.5 (16 GB Dedicated) or VPS 4000 G12.5 (32 GB Shared) for AI agents?

Pick RS 2000 G12.5 (€31.35 Yr 1 / €34.20 Yr 2+) when sustained 8-core Zen 5 CPU throughput, faster hardware-RAID NVMe IOPS, 99.9% SLA, and Netcup’s first-order 30-day Satisfaction Guarantee (Root Servers, Webhosting & ARM G12.5 where listed under *Contractual* details, claimed via CCP support) matter most. Pick VPS 4000 G12.5 (€34.93 Yr 1 / €38.11 Yr 2+) when 32 GB RAM and 512 GB disk for running Dify + Supabase + n8n + staging simultaneously outweigh pinned CPU cores.

Can I run Ollama local models on a CPU-only EPYC VPS?

Compact quantized 1B–7B models (qwen2.5:3b) and local embedding models (bge-m3, nomic-embed-text) run well on 4–8 dedicated Zen 5 cores. For 32B–70B+ reasoning chats in Dify or Open WebUI, calling frontier APIs from a €31–€35/mo server is far faster and cheaper than renting a 24/7 GPU VM.

Why set noeviction on Redis for n8n Queue Mode?

In Queue Mode, Redis stores active BullMQ job states and worker locks (QUEUE_BULL_REDIS_HOST=redis). Using an LRU eviction policy (allkeys-lru) under memory pressure silently drops queued webhook jobs, whereas --maxmemory-policy noeviction surfaces memory pressure explicitly without losing job metadata.

Should I deploy in Europe Auto-Assign or Manassas (US East) for AI APIs?

Choose No preference Europe (€0 surcharge) for EU GDPR data residency and unmetered 2.5 Gbit/s ports (compare providers in Best Cheap European VPS and Best Hetzner Alternatives). Pin Manassas, Virginia (MNZ) if North American users or sequential US-East voice/agent API calls require sub-15 ms RTT (test first in our Looking Glass).

RS 1000 G12.5 · Live Synced Voucher2 Months Free

Root Server 1000 G12.5

Save €36.52 net (€43.46 incl. 19% VAT) with 2 full months free on the 12M EU plan.

6874nc17933832471
Backup pool:
Redeem in empty cart (do not pre-add server)