Contraints and Priority

Hi

We have a client node, which was full (mem, cpu). But we wanted to deploy new jobs to this node with a contraint and a higher prio e.g. 51, so our intent was to let nomad migrate jobs which can run elsewhere from this node to another node.

To our suprise, this didn’t work. Jobs weren’t migrated.

Is this the expected behavior?

Hi @resmo, what was the type of the jobs you wanted to run and do you have preemption enabled within the scheduler config for that type?

Thanks,
jrasell and the Nomad team

Thanks @jrasell for the quick reply: service jobs and no preemption enabled.

Hi @resmo,

You’ll need to enable preemption in order to achieve the goals you expect. This Preemption Learn guide holds some useful information regarding this feature.

Is this the expected behavior?

Yes, in your current configuration, the behaviour you are seeing is the expected one.

Thanks,
jrasell and the Nomad team

1 Like

for the record: for server config see server Stanza - Agent Configuration | Nomad by HashiCorp

1 Like