Increasing Number of Works

Hi Guys,

Firstly, I apologise as I know this has been asked before, but I cannot seem to find a specific answer that leads to implementing successfully.

We are using n8n in queue mode, and the instance only allows for 10 workflows to run at one time. Which is causing a lot of issues.

I cannot seem to find specific instructions on how to increase the worker concurrency. Is this possible through the docker compose file? If so, how? Otherwise, would you be able to provide specific instructions on how to increase this please?

Again, sorry for asking, I cannot seem to find specific instructions.

I have included our docker-compose.yml file content in case it helps below.

Many thanks

Information on your n8n setup

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

Docker Compose File

version: '2'

services:
  n8n:
    image: n8nio/n8n:latest
    restart: unless-stopped
    container_name: n8n
    ports:
      - 5678:5678
    environment:
      - GENERIC_TIMEZONE=Europe/Berlin
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=xx
      - N8N_BASIC_AUTH_PASSWORD=xx
      - N8N_DIAGNOSTICS_ENABLED=false
      - N8N_USER_MANAGEMENT_DISABLED=false  
      - WEBHOOK_URL=xx
      - EXECUTIONS_DATA_PRUNE=true
      - EXECUTIONS_DATA_MAX_AGE=336
      - EXECUTIONS_DATA_PRUNE_MAX_COUNT=10000
      - DB_SQLITE_VACUUM_ON_STARTUP=false
      - NODE_FUNCTION_ALLOW_BUILTIN=crypto
      - N8N_WORKER_CONCURRENCY=30
      - N8N_CONCURRENCY_PRODUCTION_LIMIT=30
      - N8N_LOG_LEVEL=silent
    volumes:
      - /home/ubuntu/n8n/n8n_data:/home/node/.n8n

Hey @alanmartin , I do not see that you run n8n in queue mode.

Take a look at the video here which explains how queue mode is set up, https://www.youtube.com/watch?v=PnoE0xV8BX8&t=8s. Though, the walk-through does not involve Docker compose but you can adapt.

The doc about configuring queue mode, Configuring queue mode | n8n Docs.

Thanks ihortom,

Apologies I was lead to believe this was already set up in queue mode. All make sense now.

Appreciate the pointer.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.