LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Apache isn't request when other is down

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Apache isn't request when other is down
From: "Rodrigo Faria Tavares" <digolinopage@xxxxxxxxxxxx>
Date: Tue, 20 Nov 2007 19:41:34 -0200
Hi Joe,

I got redirect the requests from another apache node on. When I stop apache1 
node, the apache2 node receive all requests.

192.168.100.104 - - [20/Nov/2007:12:27:44 -0200] "GET / HTTP/1.0" 302 303 
"-" "Lynx/2.8.5rel.1
192.168.100.103 - - [20/Nov/2007:12:28:10 -0200] "GET / HTTP/1.0" 302 303 
"-" "Lynx/2.8.6rel.
192.168.100.106 - - [20/Nov/2007:12:28:29 -0200] "GET / HTTP/1.0" 302 303 
"-" "Lynx/2.8.5rel.1 libwww-FM/2.14
192.168.100.104 - - [20/Nov/2007:12:29:06 -0200] "GET / HTTP/1.0" 302 303 
"-" "Lynx/2.8.5rel.1 libwww-FM/2.14

Using the script in many clients I use the lynx command creating many 
requests (repeat 50 time each after 10 seconds) from each client , the 
answer was :

Searching 192.168.100.100
Conecting with HTTP in 192.168.100.100 .
Sending  request HTTP.
Sent request HTTP waiting answer
HTTP/1.1 302 Found
Transference complete

However  in the command ipvsadm the status apache1 must disable with 0, but 
the 1 is set.

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.100.100:80 rr
  -> 192.168.100.102:80           Route   1      0          46
  -> 192.168.100.101:80           Route   1      0          31

Any suggestion ?

Best regadrs,

Faria

On Tue, 20 Nov 2007, Rodrigo Tavares wrote:

> Hello,
>
> I'm using the LVS with ldirector, the mode is round
> robin with persistent requests. It's good.
>
> In my test, I use two real servers.
>
> But when one apache in real server is down, the
> request isn't redirect for another real server.

the problem may be that persistence is still directing the
requests to the original realserver. The HOWTO describes how
to kill these connections. I don't know if ldirectord does
this for you

Joe




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