LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Hot Spare config with LVS?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Hot Spare config with LVS?
From: Paul Baker <pbaker@xxxxxxxxxxxxxxx>
Date: Wed, 09 May 2001 18:27:37 -0500
Mark Miller wrote:

I'm currently helping out with a new LVS/netfilter deployment.  We want a
configuration where two Solaris based web servers will be setup in a primary
and secondary configuration.  Rather than load balancing between the two we
really want the secondary to act as a hot spare for the primary.  So we want
to use LVS which is, by definition, a load balancer as more of a manager for
HA for a different OS - Solaris.  Obviously the cost advantages of two Linux
boxes and LVS over commercial (Alteon, Extreme Switches, Veritas, etc.)
products make it worth the trouble.  We also want use the LDs as Firewalls
for this project using netfilter.

So, the question I have is this:
Is there any combination of schedules and/or weight (0 perhaps?) values that
will allow for configuration of the 2 real servers to be setup with one as a
primary and one as a secondary server in hot-spare capacity.  Basically we
only want the secondary real server to process requests if the primary is
removed by mon from the ipvsadm table.  Once mon detects that the primary is
providing the services we want mon to add it back to the ipvsadm table and
requests to the secondary real server to cease.

Here is a quick diagram to help illustrate this question:

                  Internet              LD1&LD2 - Linux 2.4 kernel
                      |                 RS1&RS2 - Solaris
                   Router
                      |
               -------+-------
               |             |
             -----         -----
             |LD1|         |LD2|
             -----         -----
               |             |
               -------+-------
                      |
                    Switch
                      |
               ---------------
               |             |
             -----         -----
             |RS1|         |RS1|
             -----         -----


Don't bother with using LVS. Just use heartbeat on the two firewall machines and heartbeat on the two solaris machines. Since you will need to use heartbeat anway on the linux machines, might as not introduce another program into the mix (especially if you aren't going to use it for it's intended purpose)

--
=======================================================================
Paul J. Baker                               Internet Systems Technician
pbaker@xxxxxxxxxxxxxxx                                  Where2GetIt.com
phone 847-498-0111x234
fax   847-480-7422
=======================================================================




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