How to Automatically Distribute Jobs Across Multiple Nodes in Nomad

I currently have three client nodes in my Nomad cluster, but I’ve noticed that all my jobs always run on the same node instead of being distributed among the three. I would like to know how to configure Nomad so that jobs are automatically assigned in a balanced way across different nodes.

Is there a specific configuration in the jobs or the cluster that I should adjust to achieve better load distribution? I appreciate any guidance or recommendations.


Hey @YupaTT! The Spread Block is what you’re looking for, I think! Spread evenly (without percentages) to see Nomad try to split things up in an equal way across your possible nodes.

There’s a fun tutorial about this, or read the blog post that introduced these for some notes on a “soft constraint” that does something similar in Affinities.

Hope this helps!

1 Like

Hi, yes. Set scheduler algorithm to spread. See nomad operator scheduler set-config command reference | Nomad | HashiCorp Developer

1 Like