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: "Alexandre CASSEN" <alexandre.cassen@xxxxxxxxxxxxxx>
Date: Thu, 10 May 2001 08:17:41 +0100
Hi Mark,

For your 2 LDs you need to run a Hot standby protocol. Hearthbeat can be
used, you can also use vrrp or hsrp. I am actually working on the IPSEC AH
implementation for vrrp. That kind of protocol can be usefull because your
LD backup server can be used even if it is in backup state (you simply
create 2 LDs VIP and set default gateway of your serveur pool half on LD1
and half on LD2).

For your webserver hot-spare needs, you can use the next keepalived
(http://keepalived.sourceforge.net) in wich there will be "sorry server"
facility. This mean exactly what you need => You have a RS server pool, if
all the server of this RS server pool are down then the sorry server is
placed into the ipvsadm table automaticaly. If you use keepalived keep in
mind that you will use NAT topology.

Best regards,

Alexandre



                                                                            
                                                                            
                                                                            


>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|
>             -----         -----







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