Why is my self-hosted n8n slow? Queue mode explained
By Siam Ahmed, software engineer · 7 min read · Updated
A self-hosted n8n usually gets slow for one reason: in its default setup, a single process does everything. It runs the editor, receives webhooks and executes every workflow. As your automations grow, that one process becomes the bottleneck. Queue mode fixes it by splitting the work between a main instance and separate workers. This guide explains why n8n slows down, what queue mode changes, what you need to run it, and the simpler fixes to try first.
Why self-hosted n8n gets slow
Out of the box, n8n runs in "regular" mode: one process serves the editor, listens for webhooks and schedule triggers, and runs every execution itself. That is fine for a handful of personal automations. It stops being fine when executions pile up: one heavy workflow can block the editor, webhook responses start timing out, and the instance feels sluggish even when the server's CPU is not busy.
Three limits usually arrive together. The single process can only run so much at once, so long workflows queue behind each other. The default database is SQLite, which allows one writer at a time, so saving execution data becomes a jam under load. And execution data grows: every run is stored, so a busy instance on SQLite gets a little slower every week. If your n8n feels slower than the month you installed it, this is almost certainly why.
What queue mode changes
Queue mode splits n8n into three parts: a main instance that handles the editor, triggers and webhooks; a Redis queue that holds executions waiting to run; and one or more worker processes that take executions from the queue and run them. The editor stays responsive however busy the workers are, and you add capacity by adding workers.
Two honest caveats. Queue mode does not make a single workflow run faster: a heavy execution takes the same time on a worker. What it fixes is concurrency and responsiveness. And it is a scaling tool, not a repair tool: if one workflow is slow because it processes a huge spreadsheet row by row, a worker will be just as slow.
What you need to run queue mode
Three things: PostgreSQL as the database (queue mode does not work on SQLite), Redis for the queue, and at least one worker next to the main instance. Queue mode is included in the free Community Edition, with no licence fee, but it is more to look after: three services to keep updated instead of one.
The configuration looks like this. On the main instance set EXECUTIONS_MODE=queue, point the database variables (DB_TYPE=postgresdb and the DB_POSTGRESDB_* settings) at PostgreSQL, and point the queue variables (QUEUE_BULL_REDIS_HOST and related settings) at Redis. Each worker uses the same configuration and runs with the command n8n worker. Our n8n system requirements guide covers the database side, and the Ubuntu install guide is the place to start if you are setting up the base instance.
Try these 4 fixes first
Most "slow n8n" problems are fixed without queue mode. These are simpler, and two of them are needed for queue mode anyway.
- Prune execution data. Turn pruning on (
EXECUTIONS_DATA_PRUNE=true) and keep a sensible window of past runs. On a busy instance this alone can shrink the database dramatically. - Move off SQLite. Even in regular mode, PostgreSQL removes the single-writer bottleneck. It is the biggest reliability upgrade for a production instance.
- Give Node more memory. If executions die when big payloads move through, raise the limit with
NODE_OPTIONS=--max-old-space-size, after checking the server has the RAM to give. - Check the server, not just n8n. A small VPS running n8n, a database and three other things is not an n8n problem. Watch real CPU and RAM during your busiest hour first.
How much server does queue mode need?
As a working rule: 1 vCPU and 4 GB of RAM runs the main instance, PostgreSQL, Redis and one worker for testing and light use. For production that people rely on, 2 vCPU and 8 GB of RAM leaves room for two workers and a growing database. When many heavy workflows run at once, step up to 4 vCPU and 16 GB. Beyond that, scale by adding workers rather than endlessly enlarging one machine.
When queue mode is overkill
If you run a few dozen executions a day, have no webhook-heavy workflows and the editor feels fine, queue mode buys you nothing except more to maintain. Regular mode on PostgreSQL with pruning on is the right setup for most personal and small-business instances. Queue mode earns its place when executions regularly wait in line, webhooks must answer instantly under load, or several people depend on the instance all day.
Queue mode on serverserv
serverserv n8n hosting gives you your own KVM server with n8n Community Edition pre-installed and configured, full root access, and no limits on workflows or executions. Because you have root access, you can move to PostgreSQL and add Redis and workers whenever your volume calls for it. If you are unsure whether you need queue mode yet, open a ticket and we will tell you honestly.
Sizes match the rule above: Starter (1 vCPU, 4 GB RAM) is $26.19 a month on monthly billing or $8.39 a month on a 3-year term; Personal (2 vCPU, 8 GB RAM), the production size, is $32.89 monthly or $11.09 on a 3-year term; Pro (4 vCPU, 16 GB RAM) is $64.79 monthly or $21.59 on a 3-year term. This Black Friday, the usual $10 monthly setup fee is waived and new customers pay $1 for the first month on monthly billing, then the regular price. If you would rather not look after any of it, the same n8n can run on a Managed VPS.
Questions
What is n8n queue mode?
A way of running n8n where a main instance handles the editor, triggers and webhooks, Redis holds waiting executions, and separate worker processes run them. It keeps n8n responsive under load.
Why is my self-hosted n8n slow?
Usually because one process does everything in regular mode, the default SQLite database allows one writer at a time, and stored execution data keeps growing. Pruning and moving to PostgreSQL fix most cases.
Do I need PostgreSQL for n8n queue mode?
Yes. Queue mode does not work with SQLite. You also need Redis and at least one worker.
Does n8n queue mode cost extra?
No. Queue mode is part of the free self-hosted Community Edition. You only pay for the server.
How much RAM does n8n queue mode need?
About 4 GB for testing with one worker, 8 GB for production with two workers, and 16 GB when many heavy workflows run at once.
More guides
n8n System Requirements: CPU, RAM & Disk (2026)
n8n system requirements for self-hosting: how much CPU, RAM and disk you need by workload, SQLite vs PostgreSQL, and how to stop out-of-memory crashes.
7 min readRead →n8n Hosting Black Friday: Self-Host n8n for $1
n8n hosting Black Friday deal: your own n8n server for $1 the first month, unlimited workflows and executions. Prices after month one and n8n Cloud compared.
6 min readRead →How to Update Self-Hosted n8n Safely
Update self-hosted n8n on Docker Compose safely: back up the database, volume and encryption key, pin the version, update, verify and roll back if needed.
8 min readRead →Ready to deploy?
Pick a plan, choose a term and our team sets up your server for you.
See all plansTalk to salesNeed a custom server, bulk pricing or help moving from another host? Our team will build a quote for you.