Redis Queue

I noticed a delay between triggering workflows and workers picking them up in queue mode. the delay is not huge, but very noticeable under load.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

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:

I saw the same thing, it turned out to be Redis latency

n8n relies heavily on Redis for:

  • Dispatching jobs
  • Tracking execution state

When latency increases:

  • Jobs sit in queue longer
  • Workers pick them up slower

Fix for me was:

  • Moving Redis closer to the workers
  • Monitoring latency instead of just CPU
2 Likes

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