Draning a node does not rebalance service replicas

Hi,

I am using docker swarm to have many replicas of a service and when I drain one of my worker nodes in order to upgrade the Linux kernel and reboot I would expect swarm to respect my replica count and restart the additional required replicas to meet my replica count on the other available worker nodes, unfortunately this does not happen.

Is this the normal behavior of swarm or can I configure that somewhere?

Thanks,
J.

Hi,

That’s normal. If you wanna rebalance the service you can use it:

docker service update --force $SERVICE_NAME

If you have any question, tell me.

Renan Pitz.