Docker群模式如何进行负载平衡? [英] How Docker swarm mode does load balancing?
问题描述
在docker swarm模式(docker engine 1.12+)下,对于服务,什么是负载均衡算法?
In docker swarm mode (docker engine 1.12+), for the service, what is the load balancing algorithm?
它可插入吗?
假设它是循环式的,是否仍然需要高水平的负载平衡器?由于高级负载均衡器使用了哪种路由算法,负载将平均分配到每个节点。
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.
推荐答案
该算法当前轮循,我还没有迹象表明它是可插入的。较高级别的负载均衡器将允许拆除群集节点进行维护,但是在群集模式下,轮询算法将撤消任何粘性会话或其他路由功能。
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.
这篇关于Docker群模式如何进行负载平衡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!