Does Nomad Guarantee Conflict Free Static Port Assignments?

In an example situation where each job contains one nginx webserver started with isolated Fork/Exec driver with static ports 80 and 443 assigned. Would nomad be able to guarantee at most one webserver will be assigned to each client node across multiple jobs?

Yes @jackluo923 Nomad will take static port assignments into consideration when scheduling. Note that the static port reservation is per host_network if configured.

@shoenig Thanks for the confirmation. Static port reservation sounds like what we need at the moment as we’ll be using it as a “lock” to ensure at most one instance of an application runs on a single node.