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.76k stars 1.08k forks source link

How to balance containers on newly added node with same elastic IP? #2945

Closed sandipdivekar1 closed 4 years ago

sandipdivekar1 commented 5 years ago

I am running docker swarm mode on docker version - 18.09.5. I am using AWS autoscaling for creating 3 masters and 4 workers. For high availability, if one of the workers goes down, all the containers from that worker node will be balanced on other workers. When autoscaling brings new node up, I am adding that worker node to the current docker swarm setup using some automation. But docker swarm is not balancing containers on that worker node. Even I tried to deploy the docker stack again, still swarm is not balancing the containers. Is it because of different node id? How can I customize it? I am using docker compose file deploying stack. Command = docker stack deploy -c dockerstack.yml NAME

justincormack commented 4 years ago

This issue is for https://github.com/docker/swarmkit not the old standalone Swarm.