Hi folks,
Just looking to crowdsource some thoughts here - we have a single DC with multiple workers in a nomad cluster, and we want to spread our jobs evenly across all workers. We’re working with an older version of nomad right now and after a restart, it seems to dump all jobs onto one worker, which isn’t great.
We don’t have any additional attributes or configuration at the minute. What would be the best method of having:
- Spread across all available workers
- Don’t dump them all onto the same worker
- Don’t block deployments if all but one worker are unavailable
I don’t want to end up in a scenario where, should we lose all but one worker, it’ll refuse to deploy because we’ve set up very strict rules to prevent that - but I want it to avoid that scenario unless absolutely necessary. What would your thoughts be? How would you handle the spread, using which attributes?
Thank you for your thoughts!
(Edit: Based on this: Nomad doesn’t spread processes evenly on all servers - Nomad - HashiCorp Discuss is node.unique.id the best? What would happen in the scenario where there’s only one node remaining?)