Docker Community Forums

Share and learn in the Docker community.

Migration of Worker Nodes on overloaded hosts

Hello everyone. I’m going to create a Docker cluster using Docker Swarm in a cloud environment that is going to host different types of workloads. My question is, if a host gets overloaded, one possible solution using VMs is migrating the VM to another host. Is it possible to migrate a worker node (created by Swarm) to a different host? Is it also possible to migrate containers to a different worker node?

Thanks for your time,
Sérgio Mendes

You could login to the control panel of the hosting provider (AWS, DigitalOcean, etc) and shutdown then resize the node, upon coming back up it will reconnect to DockerCloud. However since your application is most likely stateless it would be easier to just fire up a new node and spin up a new container on the new node.