Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Docker swarm mode does load balancing?

Tags:

docker

In docker swarm mode (docker engine 1.12+), for the service, what is the load balancing algorithm?

Is it pluginable?

Assuming it is round-robin, is it still needed for a high level load balancer? Since whatever routing algorithm the high level load balancer is using, the load will go to each node evenly.

like image 565
benjah1 Avatar asked Apr 07 '26 06:04

benjah1


1 Answers

The algorithm is currently round-robin and I've seen no indication that it's pluginable yet. A higher level load balancer would allow swarm nodes to be taken down for maintenance, but any sticky sessions or other routing features will be undone by the round-robin algorithm in swarm mode.

like image 171
BMitch Avatar answered Apr 15 '26 22:04

BMitch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!