LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: 2 questions regarding the LVS servers

To: ankush grover <ankushgrover1711@xxxxxxxxx>, <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: 2 questions regarding the LVS servers
From: Guy Waugh <gwaugh@xxxxxxxxxx>
Date: Fri, 23 Sep 2005 15:29:18 +1000
ankush grover wrote:
hey friends,

Thanks for the all efforts and guidance that people took to help me in
configuring Clustering of Apache servers.I have 2 questions regarding the
LVS

a) I have 2 Apache servers running with Load Balancing through WLC
algorithm.Now suppose 1 server has 15 Active Connections and the 2nd Server
has 20 connections.Now suppose the server 2 goes down what will happen to
the connections made to Server 2 will those connection automatically shifted
to Server 1 or the clients will get the error message.

If you're using ldirectord (which it sounds like you are, from your previous posts(?)), it will be fine. That is, the ldirectord (running on the director) will detect that the 2nd apache server is not responding to requests, and will remove the 2nd server from the table of real servers to send requests to. All clients who were connected to the 2nd server will automatically and seamlessly (provided there are no session issues etc. involved) be reconnected to the 1st server.

You can test this by shutting down apache on the 2nd server and doing an 'ipvsadm -L' on the director. You should see that the only real server servicing the service is the 1st apache server.

If both the 1st apache server and the 2nd apache server are still real servers for the service when you have shut down apache on the 2nd server, adjust your ldirectord.cf file so that it tests a connection to the real servers to make sure that apache is responding to requests. Horms posted this earlier - this is the sort of thing that tests that apache is listening to requests on the real servers:

# Virtual Server for HTTP
virtual=192.168.1.42:80
        fallback=127.0.0.1:80
        real=192.168.1.67:80 gate
        real=192.168.1.68:80 gate
        service=http
        request="index.html"
        receive="Test Page"
        scheduler=rr
        #persistent=600
        protocol=tcp
        checktype=negotiate



What I want is that If any of the Server goes down the connections made to
that server should automatically redirected to the other server.

Please don't mind I have not gone through the whole documentation on LVS.

b) Any software which can show the Real Time Statistics on Cluster Servers
like number of connections made to the Servers,CPU load,Bandwidth
consumption,hard disk consumption etc. The most important If any server goes
down an email to the concerned person for that server telling that the
server is down.

You want something like Nagios for this. This is beyond the scope of LVS, but plenty of web resources are available for Nagios and other monitoring tools.

Cheers,
Guy.



Thanks & Regards

Ankush Grover
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users



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