LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord.cf

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord.cf
From: Malcolm Turnbull <malcolm@xxxxxxxxxxxxxxxx>
Date: Wed, 06 Apr 2005 10:14:16 +0100
Brad,

The man page should be generated from your source but it depends how you've installed it.

service=http

controls the type of check (in this case http)


>"Test Page"? Does that page need to be in HTML? Is "Test Page" the title or body.

It can be any type of text, I'm not sure exactly what the code does its 
probably a regular expression match but basically
it scans the whole body of the page for any occurence of "Test Page" (without 
the quotes).

Most people just play with it until they get the result they expect from a test 
system.


Brad Taylor wrote:

How come the perl source only works and not the man page for me?

I still don't get how it check the real server. Is it HTTP?  My real
server will be an IIS server will that matter?

# Virtual Server for HTTP
virtual=10.1.3.61:80
       fallback=127.0.0.1:80
       real=192.168.6.4:80 masq
       real=192.168.6.5:80 masq
       service=http
       request="index.html"
       receive="Test Page"
       scheduler=rr
       #persistent=600
       protocol=tcp
        checktype=negotiate


In the above the LVS checks http://192.168.6.4/index.html  What would be
the contents of index.html? Just "Test Page" without quotes?  Thanks.

Brad



-----Original Message-----
From: Malcolm Turnbull [mailto:malcolm@xxxxxxxxxxxxxxxx] Sent: Tuesday, April 05, 2005 11:27 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: ldirectord.cf


If the checktype is negotiate then the page will be grep'd for the recieve string,
details are in the man page for ldirectord (or the perl source).
Other checks are documented for DNS,FTP IMAP etc.



Brad Taylor wrote:

In file ldirectord.cf how does the below work?
        
        request="index.html"
        receive="Test Page"

How is the request send? http?  Is index.html a text file with the
words
"Test Page"?  Does that page need to be in HTML?  Is "Test Page" the
title or body. Is there documentation on request and receive.  The man
page doesn't answer these questions.  Thanks

Brad






--
Regards,

Malcolm Turnbull.

Loadbalancer.org Limited
Office: +44 (0)870 443 8779
Mobile: +44 (0)7715 770523
http://www.loadbalancer.org/


" When a single point of failure is not an option"

Why not try our online demonstration <http://www.loadbalancer.org/demo.html> ? Or get answers to common questions <http://www.loadbalancer.org/fud.html> ?

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