LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS and Squid

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS and Squid
From: Horms <horms@xxxxxxxxxxxx>
Date: Mon, 13 Dec 2004 16:56:24 +0900
On Thu, Dec 09, 2004 at 03:14:42PM -0500, Brad Taylor wrote:
> I have two boxes I'd like to have setup this way:
> 
> 1st Server: Primary Squid and secondary LVS
> 2nd Server: Primary LVS and secondary Squid
> 
> 
> Traffic from client would be:  Client---Squid---LVS---3 backend web
> servers.
> 
> If the Squid server went down the primary LVS server would assume the
> role of both squid and the LVS.  If the LVS Server went down the primary
> Squid server would assume the role of the LVS and the Squid server.
> Can this be done?

Yes it can be done, though it may not be desirable as Wensong suggests.
If your kernel is < 2.4.23 then you will need to patch it to use LVS.
You can manage the failover as you describe using heartbeat. 
keepalived may also be able to do this, though I am not sure off hand.

-- 
Horms

<Prev in Thread] Current Thread [Next in Thread>