Queue mode: Main thread slow performance

Hello guys,

My n8n setup runs quite slow when processing many items, despite having plenty of resources available. I have set up queue mode, with one main thread and 5 workers, running from pm2. However, I haven’t seen much improvement; the main thread is still slowing down. I can see that the workers are correctly set up and taking jobs according to pm2 logs.

Does anyone have any tips on how to find the bottle neck or other guidance for better performance?

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi,

Did you set that the main instance should not process any workloads?

Do you have many webhooks?

A lot of code nodes?

Regards
J.