docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

Direct docker command to a worker based on manager or other node resource utilisation #2810

Closed ganeshmuralidhar closed 6 years ago

ganeshmuralidhar commented 6 years ago

Hi,

I am using swarm setup for internal load testing purpose where I spin custom containers on need basis and execute tests on them before the results are published and container is killed.

To make sure that a number of parallel containers can run for executing tests, I deployed swarm and have 1 manager with 2 workers now. A shell script sitting on the manager calls for a 'docker run' to spin a container. However, as there might be a case of the manager or one of the workers exhausted in resources, I want the run command for spinning container to be directed to one of the nodes based on their current resource utilisation. The requirement would be:

Thanks in advance for the assistance, Ganesh

nishanttotla commented 6 years ago

@ganeshmuralidhar please open this issue on https://www.github.com/docker/swarmkit. Sorry for the trouble.