云端并发性(Cloud concurrency)#
仅适用于 n8n 云
本文档讨论了 n8n Cloud 中的并发。请阅读 自托管 n8n 并发控制 以了解自托管 n8n 实例中的并发是如何工作的。
过多的并发执行可能导致性能下降和无响应。为了防止这种情况并提高实例的稳定性,n8n 对常规模式下的生产执行设置了并发限制。
🌐 Too many concurrent executions can cause performance degradation and unresponsiveness. To prevent this and improve instance stability, n8n sets concurrency limits for production executions in regular mode.
超过限制的任何执行都会排队等待后续处理。这些执行会一直保留在队列中,直到并发容量释放,然后按先进先出(FIFO)的顺序进行处理。
🌐 Any executions beyond the limits queue for later processing. These executions remain in the queue until concurrency capacity frees up, and are then processed in FIFO order.
并发限制(Concurrency limits)#
n8n 会根据云实例的套餐限制同时执行的数量。详情请参阅定价。
🌐 n8n limits the number of concurrent executions for Cloud instances according to their plan. Refer to Pricing for details.
你可以在项目或工作流的“执行”选项卡顶部查看活动执行次数和计划的并发限制。
🌐 You can view the number of active executions and your plan's concurrency limit at the top of a project's or workflow's executions tab.
详细信息(Details)#
关于并发,需要注意的其他一些细节:
🌐 Some other details about concurrency to keep in mind:
- 并发控制仅适用于生产执行:即从 webhook 或触发节点启动的执行。它不适用于其他任何类型的执行,例如手动执行、子工作流执行或错误执行。
- 测试评估 不计入并发限制。您的测试评估并发限制与您的计划的常规并发限制相等,但两者是分开的。
- 你无法重新尝试排队的执行。取消或删除排队的执行也会将其从队列中移除。
- 实例启动时,n8n 会恢复已排队的执行任务,直至达到并发限制,并将剩余任务重新排队。
与队列模式比较(Comparison to queue mode)#
功能可用性
队列模式适用于云企业计划。要启用它,请联系 n8n。
队列模式下的并发与常规模式下的并发是两种不同的机制。在队列模式下,并发设置决定每个工作者可以同时运行多少个作业。在常规模式下,并发限制适用于整个实例。
🌐 Concurrency in queue mode is a separate mechanism from concurrency in regular mode. In queue mode, the concurrency settings determine how many jobs each worker can run in parallel. In regular mode, concurrency limits apply to the entire instance.