LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ldirectord double checks url

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: ldirectord double checks url
From: "it-intuition" <gerd.pickel@xxxxxxxxxxxxxxx>
Date: Fri, 6 Apr 2007 00:32:50 +0200
Hello,

I run a two node loadbalancer with ldirectord (version 1.2.5-1) and
heartbeat (version 1.2.5-1) on Debian Sarge for several months now. Now
I discovered that the first node always sends two requests to our
webservers and the second node only sends one request. Does this issue
belong to my outdated versions of ldirectord+heartbeat (I know I should
update to version 1.2.5-3 ...) or did I misconfigure the hole thing?
Anyhow, the loadbalancer acts as expected.


Here is an excerpt from the apache access.log from one of our
webservers:

192.168.1.140 - - [06/Apr/2007:00:02:34 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.141 - - [06/Apr/2007:00:02:34 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:02:34 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:02:44 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.141 - - [06/Apr/2007:00:02:44 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:02:44 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:02:54 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.141 - - [06/Apr/2007:00:02:54 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:02:54 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:03:04 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.141 - - [06/Apr/2007:00:03:04 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:03:04 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:03:14 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.141 - - [06/Apr/2007:00:03:14 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"
192.168.1.140 - - [06/Apr/2007:00:03:14 +0200] "GET /hatest.html
HTTP/1.1" 200 171 "-" "libwww-perl/5.805"


We use this /etc/ha.d/ldirectord.cf:

# Global Directives
checktimeout=5
checkinterval=10
autoreload=no
logfile="/var/log/ldirectord.log"
quiescent=no

# Virtual Server for HTTP
        virtual=192.111.111.222:80
        real=192.168.1.111:80  gate    1000
        real=192.168.1.112:80  gate    3
        service=http
        request="hatest.html"
        receive="HA Livesign"
        scheduler=wrr
        persistent=1800
        protocol=tcp
        checktype=negotiate
        emailalert=admin@xxxxxxxxxxxxx
        emailalertfreq=3600


Any help would be appreciated.

Gerd



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