Spread jobs across nodes when using groups

I have configured my nomad cluster to prefer spread over binpack by setting

"server": {
    "default_scheduler_config": {
      "scheduler_algorithm": "spread"
    },
 }

However, when I schedule a group containing multiple jobs, those jobs seem to still be scheduled using binpacking, ie. a lot of jobs a clumped on one node while other nodes run mostly idle.

I assume this has something to do with those jobs being in the same group?
Is there a way to have Nomad schedule jobs more evenly in such a case?

I’d appreciate any tips here.

Cheers!

1 Like

Hi. All tasks in one group always runs on one node. See definition description group Block - Job Specification | Nomad | HashiCorp Developer