On Thu, Jun 06, 2002 at 09:42:20AM +0300, Rommel, Florian wrote:
> Hi,
> first of all, lvs is working fine her ein the office with mon to make
> it high availability. Very nice and quite fast. I got a few questions
> though which i couldnt get an answer, lets see if anyone can help me.
> 1st: I am running LVS on a p3 500 with 300MB ram over a 10mbit link ,
> loadbalancing 2 server (3 in a few weeks) is that enuff for a while or
> not? I am using LVS-NAT.
I would be _extremely_ supprised if that hardware couldn't cope with
as much data as a 10Mbit link can throw at it. In otherwords,
your network is your limit, not your load balancer's hardware.
> 2nd: The failover works with mon and lvs within 10 seconds and it
> works flawlessly, yet when an alert happens i get mail about it, is
> there any wya of only mailing once when one real server goes down and
> once when it comes up? cuz right now i get a mail that its down every
> 10 seconds.
>
> and last but not least: 3rd, I am not a perl guru and i'd rather stay
> away from it but i am trying to achieve the following: when both real
> servers go down, the lvs should redirect to another server that
> basically serves only a page sayin "the service is down" , and as soon
> as one of the real servers comes back up , it should automatically
> roll back. Has anyone done this before? or any hints on how to go
> about it?... i'd really appreciate it.
This is quite easy to achive. All you need to do is:
1. Have a web server running on the linux director.
This could for instance be running apache with mod_rewrite
and map any reauest into a plolite "please come back later" page.
2. Have LVS add the localhost as a server for the virtual service
if all the real server's disapear.
This has been done in ldirectord (available from the linux-ha CVS tree,
see www.linux-ha.org). I'm sure you can convice mon do do
something similar.
--
Horms
|