Load balancer sending request when server starts and gets ready

Load balancer sending request when server starts and gets ready

am 07.12.2009 13:32:29 von onuragin

--001517503d749d7eb7047a22a601
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I am using apache 2.2 as load balancer in front of 2 tomcat servers.
I notice that when I restart a tomcat server, when a new request comes to
apache, it directs the request to the tomcat server before the application
goes up and the user has to wait until the server gets up.
Probably when it sees that http port is up, apache routes the requests.
Is there a way to tell apache to wait until the application goes up
(something like make it poll a control page or tell apache to wait 60
seconds when a new server starts )?

Thanks.

--001517503d749d7eb7047a22a601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,


I am using apache 2.2 as load balancer in front of 2=
tomcat servers.
I notice that when I restart a tomcat server, wh=
en a new request comes to apache, it directs the request to the tomcat serv=
er before the application goes up and the user has to wait until the server=
gets up.

Probably when it sees that http port is up, apache routes the requests=
..
Is there a way to tell apache to wait until the application goe=
s up (something like make it poll a control page or tell apache to wait 60 =
seconds when a new server starts )?


Thanks.=A0


--001517503d749d7eb7047a22a601--

RE: Load balancer sending request when server starts and gets ready

am 07.12.2009 15:58:16 von Boyle Owen

________________________________

From: Onur Agin [mailto:onuragin@gmail.com]=20
Sent: Monday, December 07, 2009 1:32 PM
To: users@httpd.apache.org
Subject: [users@httpd] Load balancer sending request when server
starts and gets ready
=09
=09
Hi,=20

I am using apache 2.2 as load balancer in front of 2 tomcat
servers.
I notice that when I restart a tomcat server, when a new request
comes to apache, it directs the request to the tomcat server before the
application goes up and the user has to wait until the server gets up.
Probably when it sees that http port is up, apache routes the
requests.
Is there a way to tell apache to wait until the application goes
up (something like make it poll a control page or tell apache to wait 60
seconds when a new server starts )?

Thanks.?
________________________________


I think you've described what's happening pretty well.. However, I had a
look at http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypas s
and there are a few parameters that you can tweak that might do
something. Look especially at "ping" and "status".

If you do figure something out, please post back the solution as I (and
others, I'm sure) would be interested to know.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.=20
=20
This message is for the named person's use only. It may contain =
confidential, proprietary or legally privileged information. If you =
receive this message in error, please notify the sender urgently and =
then immediately delete the message and any copies of it from your =
system. Please also immediately destroy any hardcopies of the message.=20
The sender's company reserves the right to monitor all e-mail =
communications through their networks.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org