You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrus Adamchik <aa...@apache.org> on 2008/02/25 16:54:26 UTC
[users@httpd] mod_proxy delay detecting application restart
Using HTTPD 2.0.x on OS X and Linux, with mod_proxy setup as a
frontend for a dozen of Java applications (Jetty server instances more
specifically) running on the same machine as HTTPD. mod_proxy config
for each Java instance looks similar to this:
ProxyPass /myapp/ http://localhost:8105/myapp/
ProxyPassReverse /myapp/ http://localhost:8105/myapp/
Everything works fine except when restarting Java instances. After a
restart I keep getting "503 Service Temporarily Unavailable" responses
for up to 20-30 seconds, until finally mod_proxy detects a live
instance. I understand that mod_proxy caches a previous down status of
an instance, and does not refresh for some time. Is there a way to
configure a smaller refresh interval or avoid instance status caching
all together?
Thanks,
Andrus Adamchik
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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
Re: [users@httpd] mod_proxy delay detecting application restart
Posted by Andrus Adamchik <aa...@apache.org>.
Hi Vincent,
Since I was targeting Apache 2.0.*, I didn't even check the 2.2 docs,
so I missed the "retry" parameter. I tried your advice on OS X Leopard
that actually has HTTPD 2.2, and it worked nicely. Now need to figure
out how to upgrade my other servers...
Thanks
Andrus
On Feb 26, 2008, at 3:27 AM, Vincent Bray wrote:
> On 25/02/2008, Andrus Adamchik <aa...@apache.org> wrote:
>> Is there a way to
>> configure a smaller refresh interval or avoid instance status caching
>> all together?
>
> Try this:
>
> ProxyPass /myapp/ http://localhost:8105/myapp/ retry=5
>
> I don't know if that's right but the docs suggest it is.
>
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>
> Don't add the same to the ProxyPassReverse :-)
>
> --
> noodl
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> 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
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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
Re: [users@httpd] mod_proxy delay detecting application restart
Posted by Vincent Bray <no...@gmail.com>.
On 25/02/2008, Andrus Adamchik <aa...@apache.org> wrote:
> Is there a way to
> configure a smaller refresh interval or avoid instance status caching
> all together?
Try this:
ProxyPass /myapp/ http://localhost:8105/myapp/ retry=5
I don't know if that's right but the docs suggest it is.
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
Don't add the same to the ProxyPassReverse :-)
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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