Hi,
I’m currently trying to run parameterized batch jobs on Nomad where I want to set the constraint:
constraint {
distinct_host = true
}
But as nomad creates a new child job this contraint doesn’t have any effect it seem as the child job see only it self therefore always beeing distinct.
Hi, a trick, take a unique port number and assign it to the job. Nomad will register that port is used, and only schedule new jobs on hosts where the port is free, effectively doing distinct hosts.