LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Problem with ldirectord fallback directive

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem with ldirectord fallback directive
From: Vincent Deloye <vincent@xxxxxxx>
Date: Thu, 11 Dec 2003 13:59:10 +0100
Hello all,

I am newbie in LVS managing and i don't find any answer to my pb.
I use heartbeat-ldirectord-1.0.4-2.rh.8.0.um.1 with kernel 2.4.23.

My ldirectord config :

checktimeout=10
checkinterval=2
autoreload=yes
logfile="local1"
quiescent=no

virtual=<VIP>:80
        fallback=127.0.0.1:80
        real=192.168.2.11:80 masq
        real=192.168.2.12:80 masq
        service=http
        request="test.html"
        receive="Test page"
        scheduler=wrr
        persistent=600
        protocol=tcp
        checktype=negotiate

In normal use :
# ipvsadm -L -n
IP Virtual Server version 1.0.10 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  <VIP>:80 wrr persistent 600
  -> 192.168.2.11:80              Masq    1      0          0
  -> 192.168.2.12:80              Masq    1      0          0

When i stop Apache processes on my WWWs, i have :
# ipvsadm -L -n
IP Virtual Server version 1.0.10 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  <VIP>:80 wrr persistent 600
  -> 127.0.0.1:80                 Local   1      0          0

OK. But when i trie to connect to telnet VIP 80 i can see with tcpdump :

# tcpdump -i eth0 -p port 80
tcpdump: listening on eth0
13:40:54.671693 <client IP>.10347 > <VIP>.http: S 481718195:481718195(0)
win 16384 <mss 1460,nop,nop,sackOK,nop,wscale 0,nop,nop,timestamp
1984096830 0> (DF) [tos 0x10]
13:40:54.671751 <VIP>.http > <client IP>.10347: R 0:0(0) ack 481718196
win 0 (DF) [tos 0x10]

Who send this TCP reset ?
Do i forget some config on network management in the kernel ?

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