Calculadora de RAM, Swap y Riesgo OOM para Contenedores IA (2026)
Marca los contenedores Docker que ejecutarás (n8n, PostgreSQL 16, OpenClaw, Dify, Qdrant, Playwright) para calcular RAM real, swap y el VPS o Mini PC ideal.
Compara costos reales de Zapier, Make, n8n Cloud, VPS y Mini PCs locales — y copia un solo comando Ubuntu con claves seguras y HTTPS automático.
2502.5 IOPS 4K sync (0.4 ms) · Postgres 31 MB RSS · Honest Hetzner & PikaPods references included
Full Lab Report & JSON →
Ajusta tu volumen mensual abajo. El costo estimado y los archivos listos para producción (Docker Compose, .env, Caddyfile y script Ubuntu) se actualizan al instante.
Precio vitalicio RackNerd Black Friday · Listo para n8n/OpenClaw
Hostinger KVM VPS + Docker y Caddy TLS automático
Sin renta VPS tras amortizar · Mini PC silencioso 24/7
Cero mantenimiento Linux, cobro por volumen
#!/usr/bin/env bash
# NodeBudget 1-Click Self-Contained Deploy (n8n -> https://n8n.example.com)
# Paste directly into your Ubuntu 24.04 VPS SSH terminal (as root or with sudo)
set -euo pipefail
mkdir -p /opt/n8n && cd /opt/n8n
cat <<'NODEBUDGET_COMPOSE' > docker-compose.yml
services:
caddy:
image: caddy:2.8-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
- n8n
postgres:
image: postgres:16-alpine
restart: unless-stopped
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
n8n:
image: docker.n8n.io/n8nio/n8n:latest
restart: unless-stopped
env_file: .env
environment:
- N8N_PROTOCOL=https
- N8N_PORT=5678
- N8N_SECURE_COOKIE=true
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=168
- EXECUTIONS_DATA_PRUNE_MAX_COUNT=25000
- NODE_OPTIONS=--max-old-space-size=2048
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- n8n_data:/home/node/.n8n
mem_limit: 3g
depends_on:
postgres:
condition: service_healthy
volumes:
caddy_data:
caddy_config:
n8n_data:
pg_data:
NODEBUDGET_COMPOSE
cat <<'NODEBUDGET_ENV' > .env
DOMAIN=n8n.example.com
GENERIC_TIMEZONE=Europe/Madrid
TZ=Europe/Madrid
POSTGRES_USER=stackpilot
POSTGRES_PASSWORD=CHANGE_ME_STRONG_32_CHAR_SECRET
POSTGRES_DB=n8n
N8N_ENCRYPTION_KEY=CHANGE_ME_32_BYTE_HEX_KEY
N8N_HOST=n8n.example.com
WEBHOOK_URL=https://n8n.example.com/
NODEBUDGET_ENV
chmod 600 .env
cat <<'NODEBUDGET_CADDY' > Caddyfile
n8n.example.com {
encode gzip zstd
reverse_proxy n8n:5678 {
flush_interval -1
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
}
}
NODEBUDGET_CADDY
if ! command -v docker >/dev/null 2>&1; then
curl -fsSL https://get.docker.com | sh
fi
if [ ! -f /swapfile ]; then
fallocate -l 2G /swapfile && chmod 600 /swapfile
mkswap /swapfile && swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
sysctl -w vm.swappiness=10 >/dev/null 2>&1 || true
fi
if command -v ufw >/dev/null 2>&1; then
ufw allow 22/tcp && ufw allow 80/tcp && ufw allow 443/tcp
fi
docker compose pull && docker compose up -d
docker compose ps
echo "NodeBudget ready -> https://n8n.example.com (save /opt/n8n/.env keys in your password manager!)"services:
caddy:
image: caddy:2.8-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
- n8n
postgres:
image: postgres:16-alpine
restart: unless-stopped
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
n8n:
image: docker.n8n.io/n8nio/n8n:latest
restart: unless-stopped
env_file: .env
environment:
- N8N_PROTOCOL=https
- N8N_PORT=5678
- N8N_SECURE_COOKIE=true
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=168
- EXECUTIONS_DATA_PRUNE_MAX_COUNT=25000
- NODE_OPTIONS=--max-old-space-size=2048
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- n8n_data:/home/node/.n8n
mem_limit: 3g
depends_on:
postgres:
condition: service_healthy
volumes:
caddy_data:
caddy_config:
n8n_data:
pg_data:DOMAIN=n8n.example.com
GENERIC_TIMEZONE=Europe/Madrid
TZ=Europe/Madrid
POSTGRES_USER=stackpilot
POSTGRES_PASSWORD=CHANGE_ME_STRONG_32_CHAR_SECRET
POSTGRES_DB=n8n
N8N_ENCRYPTION_KEY=CHANGE_ME_32_BYTE_HEX_KEY
N8N_HOST=n8n.example.com
WEBHOOK_URL=https://n8n.example.com/n8n.example.com {
encode gzip zstd
reverse_proxy n8n:5678 {
flush_interval -1
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
}
}#!/usr/bin/env bash
set -euo pipefail
# 1. Install Docker + Compose plugin on Ubuntu 24.04 / 22.04
if ! command -v docker >/dev/null 2>&1; then
curl -fsSL https://get.docker.com | sh
fi
# 2. Configure 2GB swap to prevent Exit Code 137 OOM kills
if [ ! -f /swapfile ]; then
fallocate -l 2G /swapfile && chmod 600 /swapfile
mkswap /swapfile && swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
sysctl -w vm.swappiness=10 >/dev/null 2>&1 || true
fi
# 3. Open only SSH, HTTP, and HTTPS in UFW
if command -v ufw >/dev/null 2>&1; then
ufw allow 22/tcp && ufw allow 80/tcp && ufw allow 443/tcp
fi
# 4. Launch stack in /opt/n8n
mkdir -p /opt/n8n && cd /opt/n8n
docker compose pull && docker compose up -d
docker compose psGo beyond one-off estimates: size multi-container RAM & swap, decode production Docker errors in seconds, and compare 24-month renewal math across cloud and local hardware.
Marca los contenedores Docker que ejecutarás (n8n, PostgreSQL 16, OpenClaw, Dify, Qdrant, Playwright) para calcular RAM real, swap y el VPS o Mini PC ideal.
Buscador instantáneo para Exit 137 OOM, SQLITE_BUSY, 502 Bad Gateway, N8N_SECURE_COOKIE, ENOSPC y fallos TLS de Caddy.
Verified Xeon E5-2680 v4 490 MB/s fdatasync throughput, live container RSS breakdown, OOM matrix, and reproducible bash script.
Comparativa exacta a 24 meses entre Zapier ($599/mes), Make ($59/mes), n8n Cloud ($60/mes) y n8n self-hosted desde $4.00/mes.
Comparativa a 24 meses de precios de renovación, disco fdatasync 490 MB/s y RAM por dólar para n8n y OpenClaw.
Consumo eléctrico, inferencia local Ollama/MLX y TCO a 24 meses de los mejores mini PC en Amazon frente a VPS.
Medidos en servidores limpios Ubuntu 24.04 LTS con Docker 27, Caddy 2.8 TLS automático y PostgreSQL 16 bajo tráfico real de webhooks. Inspect raw Linux 6.8 telemetry & OOM matrix →
| Proveedor / Plan | Hardware / Cuota | Precio Intro | Renovación | RAM n8n | RAM OpenClaw | Arranque | Ideal para |
|---|---|---|---|---|---|---|---|
| RackNerd BF 4GB KVM | 4 vCPU · 4 GB RAM · 60 GB SSD · 10 TB | $4.00/mo ($47.98/yr) | $4.00/mo (Lifetime) | 415 MB | 685 MB | 12.1 s | VPS Black Friday vitalicio ($47.98/año) · Ver Plan → |
| Hetzner CX22 (Neutral Ref) | 2 vCPU · 4 GB RAM · 40 GB NVMe (EU/US) | ~$4.50/mo | ~$4.50/mo (Flat) | 410 MB | 680 MB | 9.4 s | Referencia neutral EU/US · Neutral benchmark |
| PikaPods n8n (Neutral Ref) | Managed Container · 2–4 GB RAM | ~$3.70/mo | ~$3.70–$8/mo | Managed | N/A | Instant | Referencia neutral gestionada · Neutral benchmark |
| Hostinger KVM 2 (BF) | 2 vCPU · 8 GB RAM · 100 GB NVMe | $7.91/mo | $12.99/mo | 420 MB | 690 MB | 11.4 s | VPS 8 GB para múltiples stacks · Ver Plan → |
| DigitalOcean 4GB | 2 vCPU · 4 GB RAM · 80 GB SSD | $24.00/mo | $24.00/mo | 410 MB | 680 MB | 9.8 s | Producción estable de equipos · Ver Plan → |
| Beelink N100 Mini PC (Amazon) | 4 Core · 16 GB RAM · 500 GB SSD · 8W | ~$169 One-Time | ~$0.88/mo power | 430 MB | 710 MB | 6.2 s | Sin renta mensual (compra única Amazon) · Ver Plan → |
| n8n Cloud Starter / Pro | Managed · 2.5k–10k execs/mo | $24–$60/mo | $24–$60/mo | Managed | N/A | Instant | Equipos sin gestión de servidores · Ver Plan → |
| ElevenLabs Creator (BF 55% Off) | 100k chars/mo · Voice AI API | $8.25/mo ($99/yr) | $22.00/mo | API Layer | API Layer | < 350 ms | Agentes de voz de baja latencia · Ver Plan → |
Combina servidor, orquestación y voz con presupuestos reales a 24 meses.
Atiende reservas, califica clientes potenciales y sincroniza con tu CRM y calendario las 24 horas.
Ejecuta tu agente autónomo de investigación y mensajería 24/7 con protección Swap de 2 GB y HTTPS.
Elimina pagos mensuales con un Mini PC silencioso de 8W–14W conectado mediante Cloudflare Tunnel.

First-party Linux 6.8 KVM telemetry: why cached dd benchmarks are fake, real 500-op 4K fsync P50/P95/P99 latency spikes (up to 7.69 ms), and why even SQLite WAL mode failed 10.7% of concurrent webhook writes.

Deep financial analysis of per-step vs per-execution billing meters across Zapier, Make, n8n Cloud, Hetzner, PikaPods, RackNerd, and local Mini PCs—plus 3 real scenarios where you should NOT self-host.

Complete 2026 bill-of-materials audit proving why an "$80 Raspberry Pi 5" actually costs $175 once you add PSU, cooler, NVMe HAT, and SSD—more than a 16 GB x86_64 Beelink N100.
Ocurre cuando N8N_SECURE_COOKIE=true está activo sin HTTPS o WEBHOOK_URL no empieza con https://. Usa Caddy en el puerto 443 y define WEBHOOK_URL=https://tu-dominio/.
Un VPS de 1 GB o 2 GB fallará bajo tareas concurrentes. Usa mínimo 4 GB RAM (8 GB KVM 2 es el punto óptimo en 2026) más un archivo swap de 2 GB y NODE_OPTIONS=--max-old-space-size=2048.
Elige Hostinger KVM 2 ($6.99/mes intro) para máxima RAM por dólar. Elige DigitalOcean ($24/mes) si prefieres tarifa plana sin subidas al renovar. Elige n8n Cloud ($24+/mes) si no quieres tocar SSH.
Comprueba que el registro DNS A apunte a la IP del VPS, que UFW permita los puertos 80 y 443 TCP y que no haya un Nginx o Apache preinstalado ocupando el puerto 80.