Greetings everyone, I’m a newbie to n8n and I’ve just made a significant breakthrough.
At my company, I’ve effortlessly integrated an n8n server (docker/rhel) and after thorough testing, it’s fully functional in production with two minor processes.
It’s an incredible tool!
I’m now considering deploying it in a Swarm with three “main” nodes and three workers. (I guess one will be a master node)
Could you please guide me to an official or tested procedure/guide/docker-compose similar to this docker-compose example (i guess for one main and multiple workers) ?
“can you help me find my car?”
“sure, it’s in the parking lot”
I feel your pain with trying to get the swarm going. I too have expended every Google search possibility to find a “current” compose file that lays out workers and even webhooks. I’m close though. Having a couple issues with my .env interpolation but I’m building as a stack in Portainer now. The moment I get it working, I’ll share it out to everyone. Honestly, it’s either k8s, k3s, or swarm. Running n8n in a single instance is fine if you only want to run one workflow with one step once a day. Any kind of load and down she goes.
The example url posted should in theory be enough to get it working just don’t forget they having multiple main instances is only supported with an enterprise license and you would need to instead use workers and webhook workers instead.
I have my queue mode running without k8s / k3s or swarm in my Portainer instance but I probably should change that in the future to make it scale as needed.