N8n setup on multiple system with same database

We are running some workflow to process certain data.

It’s hang the ui when more than 50 request comes at same time.

We are running on single machine with 16GM Ram and 8 core cpu.

So we want to deploy it to multiple server with same db connection and want to execute through nginx proxy pass.

Ho we can achieve this? We need immediate help please

Information on your n8n setup

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

Any update?

hello @Raju_Bishnoi

I think for that is better to use the queue mode

Thanks for reply.
I did setup on two server, but request is always to coming to first server. I can’t see any request in worker server log.
We can do workers setup on multiple servers?

When we enable queue mode, getting below error.

Workflow execution finished with an error

ERR Error running script (call to 8f55ae4a3be429c6d38c5d5db3e80edf89197b64): @user_script:56: script tried accessing undeclared key

If we run workflow manually then working, but when call webhook then it’s failing.

Any thing we are missing in configuration, please help.

And one more thing,
If i run parallel 100 workflow, then CPU going above 200%.

How to fix this?

Please help me on this issue.
We are using dragonfly with queue mode enabled.