Schedule specific number of containers per host

I would like to schedule 3 containers per host for a specific service.

Let’s say, 9 hosts, 27 containers, spread evenly across hosts.

Is it guaranteed to be spread evenly across hosts, or is there a way to set a rule to say “no more than 3 containers per host?”