LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ldirectord + LVS-DR + VIP bound services on realservers question

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: ldirectord + LVS-DR + VIP bound services on realservers question
From: "Alastair McCormack" <Alastair.McCormack@xxxxxxxxxx>
Date: Fri, 19 May 2006 17:58:05 +0100
Hi,
 I've managed to get a very simple LVS-DR setup running as a proof of
concept for my company. It works very well except for ldirectord
monitoring.

The realservers run several WebSeal (An HTTP Security Proxy. Acts like
a normal HTTP Server) instances each bound to a VIP address on the
loopback. Webseal can not listen on more than one interface. 

When I run ldirectord it attempts to connect to the RIP address rather
than VIP address. Ethereal confirms this as I see a whole load of RST,
ACKs for <RIP>:80

ldirectord -d /etc/ha.d/conf/sandpit
DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/conf/sandpit)
Running exec(/usr/sbin/ldirectord -d /etc/ha.d/conf/sandpit)
DEBUG2: Usage ldirectord [-d] [configfile]
{start|stop|restart|reload|status}
Type ldirectord -h for more information
Usage ldirectord [-d] [configfile] {start|stop|restart|reload|status}
Type ldirectord -h for more information
DEBUG2: Exiting with exit_status 1: Initialisation Error
Exiting with exit_status 1: Initialisation Error
wstemp1:~ # ldirectord -d /etc/ha.d/conf/sandpit start
DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/conf/sandpit
start)
Running exec(/usr/sbin/ldirectord -d /etc/ha.d/conf/sandpit start)
DEBUG2: Starting Linux Director v1.77.2.2 with pid: 6198
Starting Linux Director v1.77.2.2 with pid: 6198
DEBUG2: Running system(/sbin/ipvsadm -E -t 192.168.180.202:80 -s wrr )
Running system(/sbin/ipvsadm -E -t 192.168.180.202:80 -s wrr )
DEBUG2: Changed virtual server: 192.168.180.202:80
Changed virtual server: 192.168.180.202:80
DEBUG2: Running system(/sbin/ipvsadm -e -t 192.168.180.202:80 -r
192.168.180.231:80 -g -w 5)
Running system(/sbin/ipvsadm -e -t 192.168.180.202:80 -r
192.168.180.231:80 -g -w 5)
DEBUG2: Changed real server: 192.168.180.231:80 (1 x
192.168.180.202:80)
Changed real server: 192.168.180.231:80 (1 x 192.168.180.202:80)
DEBUG2: Checking negotiate: real
server=negotiate:http:tcp:192.168.180.231:80::5:\/index\.html:
(virtual=tcp:192.168.180.202:80)
DEBUG2: Checking http: url="http://192.168.180.231:80/index.html";
virtualhost="192.168.180.231"
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://192.168.180.231:80/index.html

LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::UserAgent::request: Simple response: Internal Server Error
DEBUG2: Running system(/sbin/ipvsadm -e -t 192.168.180.202:80 -r
192.168.180.231:80 -g -w 0)
Running system(/sbin/ipvsadm -e -t 192.168.180.202:80 -r
192.168.180.231:80 -g -w 0)
DEBUG2: Quiescent real server: 192.168.180.231:80 (1 x
192.168.180.202:80) (Weight set to 0)
Quiescent real server: 192.168.180.231:80 (1 x 192.168.180.202:80)
(Weight set to 0)
DEBUG2: Disabled server=192.168.180.231
DEBUG3: Headers Content-Type: text/plain
Client-Date: Fri, 19 May 2006 16:27:18 GMT
Client-Warning: Internal response
DEBUG2: check_http: http://192.168.180.231:80/index.html is down
ldirectord sandpit received signal: INT
DEBUG2: Running system(/sbin/ipvsadm -D -t 192.168.180.202:80)
Running system(/sbin/ipvsadm -D -t 192.168.180.202:80)
DEBUG2: Removed virtual server: 192.168.180.202:80
Removed virtual server: 192.168.180.202:80


Should I be expecting this? I noticed this thread:
http://archive.linuxvirtualserver.org/html/lvs-users/2002-09/msg00232.html
but hoped it may have been addressed.
Should I expect this behaviour from ldirectord?

Some setup info:

Director: Suse Linux Enterprise 9 on a pretty hefty Xenon box. One
ethernet card.
LVS-DR
ifconfig eth0:1 192.168.180.202 broadcast 192.168.180.202 netmask
255.255.255.0

DIP address = 192.168.180.252
VIP address = 192.168.180.202

Realservers: 2 x Windows 2000
RIP address = 192.168.180.231, 192.168.180.232
VIP address aliased on lo

ldirectord ver: heartbeat-ldirectord-1.2.2-0.6.rpm

cat /etc/ha.d/conf/sandpit
virtual=192.168.180.202:80
        real=192.168.180.231:80 gate 5
        service=http
        request="/index.html"


Thanks in advance, Alastair




***  IMPORTANT NOTICE ***
***  NHSBSA DISCLAIMER ***

This e-mail and any attachments transmitted with it, including replies and 
forwarded copies subsequently transmitted (which may contain alterations), 
contains information which may be confidential and which may also be privileged.

The content of this e-mail is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s), or the person
authorised as responsible for delivery to the intended recipient(s), please 
note that any form of distribution, copying or use of this e-mail
or the information in it is strictly prohibited and may be unlawful.

If you have received this e-mail in error please notify the Help Desk at
the NHS Business Services Authority, Prescription Pricing Division via e-mail 
to help@xxxxxxxxxx including a copy of this message. Please then delete this 
e-mail and destroy any copies of it.

Further, we make every effort to keep our network free from viruses.
However, you do need to validate this e-mail and any attachments to it for 
viruses, as we can take no responsibility for any computer virus that might be 
transferred by way of this e-mail.

This e-mail is from the NHS Business Services Authority whose principal office 
is at Bridge House, 152 Pilgrim Street, Newcastle-upon-Tyne, NE1 6SN. 

Switchboard Telephone Number :- +44 (0)191 232 5371


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