Distribute three instances of a service to three nomad clients

I have one service which has a count of 3 and has a port map. We have a cluster of three server/clients and want to distribute the three instances on each client.
Is there a way to do this? For now, the server cannot do the deployment because it says its exhausting the port (which is correct on the same node), but should deploy it to all three.


Hi @bert2002. Nomad bin-packs deployments by default. You may want a distinct_hosts constraint to force the tasks to be spread out.

Keep in mind this will prevent Nomad from rescheduling a task onto another node if its node fails… but seeing as how you have a combined server/client node I suppose it doesn’t matter because you’ll have lost the ability to schedule in that case anyways.