We have installed n8n self hosted on an AWS EC2 using Docker. We have about 50 workflows running right now, getting data from an API, throwing it to a Google Sheet, then sending from a Google sheet to another API. All workflows with Cron, so it should be very constant processing during the day. Then seemingly out nowhere something happens…
Thanks a lot. But in this case is actually that piece of information the most important one. But assuming that you run n8n in the default which is “own”.
In this case it is probably a good idea to change it to “main” mode. You can find the docs here.
In the end, what you have to do is set the environment variable EXECUTIONS_PROCESS=main. This will ensure that n8n does not start a new process for each execution. Check if that solves the issue for you.
Generally are CPU spikes no problem, all that would happen then is that n8n gets slow, what is however a problem is when n8n runs out of memory and this setting should help with that.