Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

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

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


digolinopage at yahoo

Nov 20, 2007, 3:16 AM

Post #1 of 5 (803 views)
Permalink
[lvs-users] Apache isn't request when other is down

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.

See my ldirector.cnf

checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
logfile="local0"
quiescent=yes

virtual=192.168.100.100:80
real=192.168.100.101:80 gate
real=192.168.100.102:80 gate
fallback=127.0.0.1:80 gate
service=http
request="index.html"
receive="Apache1 - Cluster!"
scheduler=rr
persistent=20
netmask=255.255.255.0
protocol=tcp

The Apache Server configuration :

NameVirtualHost 192.168.100.100:80
NameVirtualHost 192.168.100.101:80

There is a index.html in /var/www/apache2-default.

Any idea ?

Best regards,

Faria




Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Nov 20, 2007, 5:21 AM

Post #2 of 5 (773 views)
Permalink
Re: [lvs-users] Apache isn't request when other is down [In reply to]

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

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


michael at gsc

Nov 20, 2007, 9:36 AM

Post #3 of 5 (770 views)
Permalink
Re: [lvs-users] Apache isn't request when other is down [In reply to]

Dear Rodrigo,

What happens, when the server fails over, if you execute:

ipvsadm -ln
(or use watch to watch it:)
watch -d -n .1 ipvsadm -ln

Does the active conn change for the secondary server?

Also, are you waiting til the persistence expires since you have
quiescent=yes?

Try setting it to no.

Michael

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.
>
> See my ldirector.cnf
>
> checktimeout=3
> checkinterval=1
> fallback=127.0.0.1:80
> autoreload=yes
> logfile="/var/log/ldirectord.log"
> logfile="local0"
> quiescent=yes
>
> virtual=192.168.100.100:80
> real=192.168.100.101:80 gate
> real=192.168.100.102:80 gate
> fallback=127.0.0.1:80 gate
> service=http
> request="index.html"
> receive="Apache1 - Cluster!"
> scheduler=rr
> persistent=20
> netmask=255.255.255.0
> protocol=tcp
>
> The Apache Server configuration :
>
> NameVirtualHost 192.168.100.100:80
> NameVirtualHost 192.168.100.101:80
>
> There is a index.html in /var/www/apache2-default.
>
> Any idea ?
>
> Best regards,
>
> Faria
>
>
>
>
> Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
> http://br.mail.yahoo.com/
>
>
>


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


digolinopage at yahoo

Nov 20, 2007, 1:41 PM

Post #4 of 5 (770 views)
Permalink
Re: [lvs-users] Apache isn't request when other is down [In reply to]

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



_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


digolinopage at yahoo

Nov 21, 2007, 4:02 AM

Post #5 of 5 (773 views)
Permalink
Re: [lvs-users] Apache isn't request when other is down [In reply to]

Hello,

Just set quiescent=no in ldirector

Still the fail conection go out.

Best regards,

Faria


--- Rodrigo Faria Tavares <digolinopage [at] yahoo>
escreveu:

> 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
>
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list -
> lvs-users [at] LinuxVirtualServer
> Send requests to
> lvs-users-request [at] LinuxVirtualServer
> or go to
> http://lists.graemef.net/mailman/listinfo/lvs-users
>



Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.