L7 switching support in LVS

Jacob Coby jcoby at listingbook.com
Fri Oct 8 20:25:42 BST 2004


Jessica Yang wrote:
> Our application require L7 load balancing because we use URL rewriting to
> keep the session info in the requested URLs, like this:
> http://ip/servlet/servletname;jsessionid =*****. Basically, we want the load
> balancer will deliver the requests who have the same jsessionid to the same
> real server. Looking through the LVS document, KTCPVS seems to be able to
> provide L7 load balancing, but I couldn't find any documentation about
> compiling, configuring, features and commands of KTCPVS. Does KTCPVS have
> the feature to distinguish the jsessionid in the requested URL and/or in the
> Cookie header? Does KTCPVS have to be bundled together with IPVS? And what
> is the process to make it work? 

It almost sounds like you need to use a proxy instead of LVS to do the 
load balancing.  If something in your jsessionid is unique to a server, 
it would be very simple to make a rewrite rule accomplish what you want.

-Jacob


More information about the lvs-users mailing list