jenkinsci/docker-swarm-plugin

replicas-max-per-node

Opened this issue · 2 comments

Hello. I need to be able to use the replicas-max-per-node parameter. I have several different machines with a different amount of cores, so limiting by CPU or RAM won't work for me. I need to be able to specify that each machine will only run one container on it. Implementing this feature, or providing any info on how I can accomplish this would be very helpful. Thank you!

Same problem here. Tried to tackle problem by doing another 'Docker agent template' with same label, but that does not work since it will always use first one. And on pipeline side, you can't, at least anymore do " agent { label 'slave-1 || slave-2' }. At the moment makes the plugin no-go for my case.

We would be interested in this as well. We know the capacity of our swarm and want to limit the amount of container agents we spin up with jenkins, otherwise it will spin up too many and then docker dies