redundant load balancer for Tomcat

jp flag

I have three Tomcat webservers in a VMWare cluster.

In the first place we thought of using Apache as a load balancer in physical server but this would be a SPOF.

I have searched around and I found this discussion but I would need some more info. Does it make sense to include the two (or more) HAProxy servers as virtual machines and not run them on physical servers? Can this active-passive configuration be configured using Apache? I have searched around and I found many active-passive configurations for Apache BUT as Web Server, not as a load balancer.

br flag

Without a lot of experience with Apache as a reverse proxy/load balancer I don’t see any immediate reason for why it wouldn’t work.

That said, I’ve been using several virtual HAProxy pairs for almost a decade now and am very happy with that product.

From version 2.5, multithreading is very well integrated into HAProxy, so it’s trivial to scale if your traffic requires more than one core worth of capacity.

To provide a virtual IP with a primary and backup server I have installed keepalived which uses VRRP to ensure the vIP fails over to the backup proxy when it goes down.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.