Docker 集群多个代理前面多个 tomcats
Docker Clustering multiple proxies fronting multiple tomcats
ls,
我想将代理前端的应用服务器集群移动到 Kubernetes Docker 环境。我们现在有一个像集群一样的故障转移交叉集群,我们正在使用粘性会话来限制我们的内存解决方案所需的资源(每个 >2GB Tomcat)。
我现在正在为每个组件作为微服务的概念而苦恼。两种微服务 (Proxy/Tomcat) 都应根据需要独立扩展。还考虑使用至少 2 个容器对服务进行自我修复。每个容器都应该是不可知的,例如:不知道其周围环境,它为另一个组件提供服务。
现在代理容器如何将自己绑定到所有底层 tomcat 容器?代理容器如何在代理容器启动后绑定 tomcat 容器 added/resurrected?现在代理容器如何保持对特定 tomcat 容器的粘性?
我故意尽量减少问题和描述,当然很乐意提供更多细节。
此致,科尔内
顺便说一句,抱歉交叉 post 我假设我 post 首先要堆栈溢出
https://superuser.com/questions/1090867
我在这个博客中找到了自己的解决方案 post
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
ls,
我想将代理前端的应用服务器集群移动到 Kubernetes Docker 环境。我们现在有一个像集群一样的故障转移交叉集群,我们正在使用粘性会话来限制我们的内存解决方案所需的资源(每个 >2GB Tomcat)。
我现在正在为每个组件作为微服务的概念而苦恼。两种微服务 (Proxy/Tomcat) 都应根据需要独立扩展。还考虑使用至少 2 个容器对服务进行自我修复。每个容器都应该是不可知的,例如:不知道其周围环境,它为另一个组件提供服务。
现在代理容器如何将自己绑定到所有底层 tomcat 容器?代理容器如何在代理容器启动后绑定 tomcat 容器 added/resurrected?现在代理容器如何保持对特定 tomcat 容器的粘性?
我故意尽量减少问题和描述,当然很乐意提供更多细节。
此致,科尔内
顺便说一句,抱歉交叉 post 我假设我 post 首先要堆栈溢出 https://superuser.com/questions/1090867
我在这个博客中找到了自己的解决方案 post
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