Activepieces Worker Isolation, BullMQ & Storage Cost Models
Eight quantitative sizing models covering V8 isolate RAM ceilings, BullMQ Redis persistence, PostgreSQL execution log pruning, Playwright memory cliffs, and KVM throughput.
8 Audited Engineering Guides
AP_EXECUTION_MODE RAM
Switching AP_EXECUTION_MODE from UNSANDBOXED to SANDBOXED adds ~230 MB per concurrent worker; SANDBOX_CODE_ONLY cuts that penalty in half.
BullMQ Redis Workers
Activepieces dispatches flow runs through BullMQ on Redis 7; misconfigured maxmemory eviction silently drops queued webhooks under burst load.
Postgres Log Pruning
Unpruned JSON step payloads grow PostgreSQL 16 TOAST tables by ~65 MB per 1,000 multi-step runs; setting 14-30 day retention prevents disk saturation.
V8 Isolate Heap Caps
Uncapped Node.js worker heaps collide with Docker mem_limit during JSON parsing bursts; align AP_SANDBOX_MEMORY_LIMIT with --max-old-space-size.
Unprivileged vs Socket
Avoid mounting /var/run/docker.sock into automation workers; V8 SANDBOX_CODE_ONLY provides strong isolation without root container escalation risk.
Playwright RSS Cliff
Every concurrent headless Chromium browser step adds 380-520 MB RSS; running 4 browser flows on an 8 GB node triggers immediate swap thrashing.
Queue Backpressure
Unbounded retries against rate-limited SaaS APIs multiply worker RAM and queue depth 4x during outages; proper backoff keeps queues flat.
KVM 4 vs KVM 8 Scale
KVM 4 ($9.99/mo) sustains 500k-900k HTTP/code runs cleanly; KVM 8 ($19.99/mo) doubles NVMe to 400 GB and unlocks 20+ concurrent workers.