Auto-provision new hosts with docker swarm -


how can automatically provision new machines when docker swarm detects there not enough resources schedule services?

i use setup rancher , docker swarm scheduler, , if there not enough resources, service creation fails:

exit status 1: creating stresstest2_workerb1_1 creating stresstest2_workerb2_1 no resources available schedule container 

i can poll status , call docker machine when needed, rancher not attempt re-schedule missing services. wonder if there more integrated solution, maybe hook within docker swarm can used dynamically call docker-machine create or remove machines.

i'm deciding between rancher docker 1.11 + docker swarm or docker 1.12 in swarm mode, solution fine.

are using new docker swarm mode came in 1.12? there isn't hook in docker swarm this. swarm mode, use docker remote api collect events trigger instead of polling.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -