[英]Apache tomcat deployment with load balancer
I am trying to come up with a simple procedure for production deployments. 我正在尝试为生产部署提出一个简单的过程。 I have 2 tomcat nodes, front ended by 2 apache nodes with a load balancer on top of apache nodes. 我有2个tomcat节点,前端是2个apache节点,在apache节点之上有一个负载均衡器。 For some reason I wont be able to do parallel deployments on Tomcats. 由于某种原因,我将无法在Tomcat上进行并行部署。 I am trying to use balancer-manager for during deployment in which I will make sure I drain tomcat node 1 before the application changes. 我正在尝试在部署期间使用balancer-manager,在该部署中,我将确保在应用程序更改之前先耗尽tomcat节点1。 I want to make sure I validate the changes on the tomcat node before I put the node in to live state. 我想确保在将tomcat节点置于活动状态之前,先对tomcat节点上的更改进行验证。 I know, at this point, I can take the apache node 1 offline from load balancer and change balancer-manager to route requests only to tomcat node 1 and point all my requests to Apache node 1 to validate before I go live. 我知道,这时,我可以使apache节点1从负载均衡器脱机,并更改balancer-manager以将请求仅路由到tomcat节点1,并将我的所有请求都指向Apache节点1进行验证,然后再上线。 I see this as a complex procedure to implement and I want to know if there is a better way I can achieve this. 我认为这是一个复杂的实现过程,我想知道是否有更好的方法可以实现这一目标。 Just an FYI we load balance requests between two apache nodes at F5 and we load balance requests between 2 tomcat nodes using Apache. 仅供参考,我们在F5的两个apache节点之间负载平衡请求,并使用Apache在2个tomcat节点之间负载平衡请求。
Any help? 有什么帮助吗?
There are three ways, I'm aware of: 我知道三种方式:
I used all methods in production and large ISPs. 我在生产环境和大型ISP中使用了所有方法。 Depends, on your infrastructure, application, and, how you want to deal with the HA issue. 取决于您的基础结构,应用程序以及您要如何处理HA问题。
HTH, Mark HTH,马克
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.