Good afternoon to the community. I have a question about EXECUTIONS_PROCESS own and main. In the documentation could not clearly understand which is better to use.
Please help me to understand the difference between these two modes.
As an example, the n8n is installed on a VPS,
CPU: 2
RAM: 2 GB
NVMe: 30 GB
On accessing the webhook, the workflow started and stopped with an error.
I. own mode:
- Will the same workflow start when accessing this webhook?
- Will another forkflow start when accessing another webhook?
II. main mode:
- When this webhook is accessed, will the second workflow start?
- Will forkflow run when accessing another webhook?
Thanks.
Regards, Aleksandr.
Information on your n8n setup
- **n8n version:0.181.2
- Database you’re using (default: SQLite):
- **Running n8n with the execution process [own(default), main]:own
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:Docker
Hi @asuhan,
On accessing the webhook, the workflow started and stopped with an error.
I. own mode:
- Will the same workflow start when accessing this webhook?
Yes. Each event received by a trigger node (like a webhook) will start their own workflow execution. It doesn’t matter if a previous execution ran into an error.
- Will another forkflow start when accessing another webhook?
Yes. A new process is spun up and your workflow execution takes place.
II. main mode:
- When this webhook is accessed, will the second workflow start?
Yes, just like in own mode a trigger event will start a new workflow execution.
- Will forkflow run when accessing another webhook?
Also yes, unless a currently running workflow execution is so demanding that it takes up all available resources. In this case, main mode could result in the bottleneck mentioned in our docs.
So you typically want main mode (everything running in one process) if you have simple and stable workflows that are unlikely to consume much resources and where a fast response time is key.
own mode on the other hand has a greater latency (because each execution needs to wait for a new process to start) and requires a few more resources, but you can make use of multi-core CPUs and improved platform stability. So you’d typically want this for more complex workflows where your focus is on stability.
Good afternoon, MutedJam. Thank you very much for the detailed explanation.
Regards, Aleksandr.
You are most welcome, glad to hear this helped!
I’ve set up n8n with docker-compose, using the provided .yml and .env file info that n8n provides.
I’ve been trying to understand why when adding EXECUTIONS_PROCESS=own it brings my n8n container to a perpetual restart loop, causing it to never allow me to go to my UI. (Sidenote: for some reason execution_process is never mentioned in any of the n8n documentation? - It’s not even among the EXECUTIONS environment variables).
On top of the config I’ve added N8N_CONCURRENCY_PRODUCTION_LIMIT=6. I’m wondering if I need EXECUTIONS_PROCESS=own whatsoever or if I’m good with the concurrency limit of 6 env variable, without having to add the execitions process env variable.
MutedJam says that with EXECUTIONS_PROCESS=own one is able to have multiple workflow executions, without overloading one single workflow. But is it the same with just having the N8N_CONCURRENCY_PRODUCTION_LIMIT=6 variable, or is that a whole other thing?
CONTEXT:
What led me to investigate this concurrency topic is that I’ve created an n8n workflow to allow for multiple incoming messages from ManyChat (instagram & whatsapp) which forwards those messages to the respective webhooks I have for instagram and whatsapp which get then processed by an agent with ease (I have nodes that don’t overoad the agent).
My worry is that if some people write at the same time from both apps (and some even send messages back to back to explain their point , instead of a big paragraph) whether the webhooks will be able to sustain it and queue data that goes above the limit of 6 (I can increase it).
The docs explain how this is
I would be very grateful if someone could help me with this! Thank you !!