ls,
我希望将由代理代理的应用程序服务器集群移动到Kubernetes Docker环境中。我们现在有了一个像集群一样的故障转移集群,并且我们正在使用粘性会话来限制我们易于内存的解决方案所需的资源(每个Tomcat>2GB)。
我现在正在努力解决每个组件都是微服务的概念。这两个微服务(代理/Tomcat)都应该根据需要独立地进行扩展。同时考虑到至少有2个容器的服务的自愈性。每个容器应该是不可知的,例如:不知道它周围的环境,它向另一个组件提供服务。
现在,代理容器将如何绑定到所有底层tomcat容器?如果tomcat容器在这个代理容器启动后添加/复活,那么代理容器如何绑定呢?现在,代理容器将如何保持对特定tomcat容器的粘性?
我故意尽量尽量减少问题和描述,当然,我很乐意给出更多的细节。
你好,科内
顺便说一句,不好意思,我是在假设我发布的第一个位置是堆栈溢出,https://superuser.com/questions/1090867。
发布于 2016-07-01 14:42:17
我在这篇博文中找到了自己的解决方案
The solution is to directly load balance to the pods without load balancing the traffic to the service. This functionality is implemeted with service-loadbalancer in kubernetes. This implementation uses haproxy to enable session affinity and directly load balance the external traffic to the pods without going through services. http://nishadikirielle.blogspot.nl/2016/03/load-balancing-kubernetes-services-and.html
https://stackoverflow.com/questions/37902294
复制相似问题