Workflow now takes 30 minutes: find the bottleneck
A practical runbook for diagnosing a slow n8n workflow using queue wait, node duration, API latency, workload size, database behavior, CPU, and memory.

When a workflow that used to finish in 5 minutes now takes 30, do not start by adding CPU or workers. First locate where the extra 25 minutes went: queue delay, a slower external API, more items, retries or rate limits, execution-data writes, database latency, or CPU and memory saturation. Optimize only after identifying the stage that created the regression.
The fastest investigation compares a slow execution with a healthy one carrying a similar workload, separates queue wait from execution runtime, ranks nodes by duration change, and correlates timing with item count, payload size, HTTP retries, and infrastructure metrics. If only one workflow is slow, investigate its nodes and dependencies first. If many workflows degrade together, prioritize workers, queues, the database, and shared infrastructure. Treat this as regression analysis, not configuration guesswork.
Scope
First determine whether the 30 minutes are execution or waiting
End-to-end latency and node processing time are different measurements.




