Fix Guides // NodeFlow Diagnostics
Enabling Flowise MODE=queue with Redis & BullMQ Workers
Decoupling web API requests from heavy LLM/RAG execution via MODE=queue eliminates event-loop freezes and lets you scale worker containers independently.
Measured Stack Telemetry & Memory Profile
In Queue Mode, flowise-main serves the UI and enqueues predictions/upserts into Redis in <180 ms, while flowise-worker pulls jobs asynchronously with controlled WORKER_CONCURRENCY. Combined with Postgres 16, multi-agent RAG runs reliably without dropping client sockets.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| API Enqueue Latency | 80 - 180 ms | Never blocks UI or webhook listeners |
| Recommended Worker Concurrency | 2 - 4 per worker | Prevents V8 heap spikes per container |
| Minimum VPS Tier for Queue Mode | KVM 4 (16 GB / 4 vCPU) | Runs main + worker + Redis + Postgres + Qdrant |
Step-by-Step Triage & Config Remediation
- Add Redis 7 Alpine service: Start redis:7-alpine with --appendonly yes and --maxmemory 1024mb in docker-compose.yml.
- Switch MODE=queue in .env: Set MODE=queue, REDIS_URL=redis://redis:6379, and QUEUE_NAME=flowise-queue across all Flowise containers.
- Launch flowise-worker container: Run flowiseai/flowise-worker with WORKER_CONCURRENCY=3 and shared .env credentials.
MODE=queue QUEUE_NAME=flowise-queue REDIS_URL=redis://redis:6379 WORKER_CONCURRENCY=3 REMOVE_ON_AGE=86400 REMOVE_ON_COUNT=500
Diagnostic FAQ
Do flowise-main and flowise-worker need the exact same FLOWISE_SECRETKEY_OVERWRITE?
Yes. Both containers must share identical encryption keys and database credentials to decrypt stored API keys.
Can I scale to two worker containers on KVM 8?
Yes. On a 32 GB KVM 8 (8 vCPU), running 2 worker containers with WORKER_CONCURRENCY=3 handles up to 60 active flows.