Where to add EXECUTIONS_PROCESS

Hi there, I am seeing a slow response on webhook, i did quick search and I found by adding it to the environment file it will speed up the process.

The link for documentation below gives 404, it would be better if you setup some sort of redirect though.

so, where to put exactly this line of code

EXECUTIONS_PROCESS=main

inside the .env file ? like the picture below ?

well, i did it and restarted the docker and still the response slow. I have even upgraded my server to 80 GB and 4 processer.

You would normally add it to your environment variables, Are you using the docker run command or compose?

1 Like

I am using the same method of installation from this video. I hope the correct answer is compose.

Thank you for the help. BTW, i am really not sure where exactly to place the code and also where to find environment variables

Agree, do not know why never a redirect got created, that should always happen. The documentation can now be found here.

Just adding it to the .env file will not be enough. You also have to change your docker-compose file accordingly under the environment part of n8n (add - EXECUTIONS_PROCESS`). Best to check out the Server Setup Guide and look how it looks like for other environment variables.

1 Like

Thank you for your reply.

So, I checked the page you referred to here

I noticed its called now

export EXECUTIONS_PROCESS=main

so, is my method correct here in the images below, will that fix the issue or should I do something else ?

1-

image

2-

If you remove the export before EXECUTIONS_PROCESS=main in the .env it should work fine.

1 Like

Thank you so much Jan. from 1.5 s to 0.2s. Amazing.

So, if i have multiple workflows, it will not be affected in any way, right ?

1 Like

That is sadly impossible to answer. Depends on the workflows. Now everything will run in the same process. So if you run a workflow that would block the Node.js event loop, no other workflow would run anymore. Normally that should however not happen.

1 Like