why does mod_jk still try to send the request to a shutdown machine?

2007-08-22 Thread Guofeng Zhang
Hi, I use Apache as the load balancer and configured mod_jk to work in failover mode. The master and slave run on separate machines. To test how the failover works, I shut down the master machine, then I access my application. But it takes about one minute for me to see the first page. I t

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Rainer Jung
Have a look at http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html You could lower you prepost_timeout. The Timeouts will help for unplanned downtimes. For planned downtimes you should administratively change the activation attribute of the load balancer members. Regards, Rainer

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread David Rees
On 8/23/07, Rainer Jung <[EMAIL PROTECTED]> wrote: > Guofeng Zhang schrieb: > > # Define Master > > worker.master.host=192.168.225.195 > > worker.master.port=8009 > > worker.master.type=ajp13 > > worker.master.lbfactor=1 > > worker.master.cachesize=10 > > worker.master.cache_timeout=600 > > worker.

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Rainer Jung
David Rees schrieb: > On 8/23/07, Rainer Jung <[EMAIL PROTECTED]> wrote: >> Guofeng Zhang schrieb: >>> # Define Master >>> worker.master.host=192.168.225.195 >>> worker.master.port=8009 >>> worker.master.type=ajp13 >>> worker.master.lbfactor=1 >>> worker.master.cachesize=10 >>> worker.master.cache_

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread David Rees
> > He's already using a low prepost_timeout of 50ms (IMO is way too low > > and should be set to 250-500ms). > > Sorry, I had only little time and directly ran into our old problem, > that some timeouts are seconds, and some are milliseconds. Your are > right, 50 is way too small, se my new Timeou

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Rainer Jung
David Rees schrieb: >> So in case the remote host is dead (i.e. it's not only Tomcat not >> answering or no Tomcat there), we have the problem, that TCP as a >> reliable problem tries hard to establish a connection with several >> resends of SYNs in increasing intervals, leading to long waiting tim

RE: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Guofeng Zhang
-Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 10:24 PM To: Tomcat Users List Subject: Re: why does mod_jk still try to send the request to a shutdown machine? Have a look at http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html You

Re: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Mladen Turk
Guofeng Zhang wrote: Thanks for all the replies about this question. But I still can not know if it could be solved by tuning the attributes in worker.properties. I read that doc carefully and make some changes to the worker.proerties. There is no improvement. It seems that mod_jk try to estab

RE: why does mod_jk still try to send the request to a shutdown machine?

2007-08-23 Thread Guofeng Zhang
By the way, the Apache server and my application run on Windows Server 2003. -Original Message- From: Guofeng Zhang Sent: Friday, August 24, 2007 2:28 PM To: 'Tomcat Users List' Subject: RE: why does mod_jk still try to send the request to a shutdown machine? Thanks for all t