New label to limit the number of containers per node #1734
Comments
@xFragger I'm not very sure about CPU/Memory/Somethingelse-independent. Container clustering is about resource utilization and your case seems to fit in that. I had a similar case and I used memory limit to do it. I can only run 4 instances of the following command to use up 4 GB memory on the node.
|
But with this, i limit the memory per container to 1GB, i don't want to do this. I'm sure, that that is exactly what i need: a max of n containers per node, controlled by a label at the node |
Another more general solution could be to allow <, >, >= and <= as possible constraint expressions and bring in some "variables" to compare to I would label all my instances with a maxContainerCount label und check at launch time by |
Hi!
Do you have idea how it fix? |
Any updates on this? |
This seems like a pretty important thing, especially if you do not have the exact same hardware when processing jobs... is this something that could be added to swarm? |
just as discussed in #534 i would need to have a label (or something like this) to limit the number of containers per node.
What about something like com.docker.containersmax oder com.docker.swarm.maxcontainers?
It should be absolutely CPU-/Memory-/Somethingelse-independent.
When no node is found, the "error" should be in the same manner like the error, when no node with that port or constraint is found, something beginning with "unable to find a node ...".
I would help, but my go experience is like zero, maybe i've got the time end of next week, to help a bit with this
The text was updated successfully, but these errors were encountered: