Currently we are using HA proxy for our load balancing needs. We are planning to integrate LVS with HA proxy to create a load balancing solution that can take care of L4 to L7 load balancing and HA.
The reasons behind going for LVS are
- Better L4 support for long standing TCP sessions
- Direct server return (not possible in HA proxy)
- Fail over for existing connections when an active load balancer goes down.
Right now, with HA Proxy, the back up load balancer only takes care of load balancing the new sessions to the back end servers and the existing connections that were serviced byt he active load balancer are lost. We are hoping that since LVS operates in kernel space, it can do fail over even for the existing sessions.
Has some one here used both LVS and HA Proxy in combination?
If so, could you please provide some pointers on integrating both - should all the packets be picked up by LVS and then the L7 requests be sent to HA Proxy?