httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Reverse Proxy - retry parameter in Apache/2.2.3.
Date Tue, 15 Feb 2011 12:50:22 GMT
On Tue, Feb 15, 2011 at 12:33 PM, Szász Csaba <szasz.csabi@gmail.com> wrote:
> Hello All,
> We have a problem with one reverse proxy. The problem is that there is only
> one Tomcat backend server but sometimes the connection between the Apache &
> Tomcat gets broken (we are still investogate the cause) To decrease the
> outage time we want to decrease the retry time while Apache re-connect to
> the Tomcat server.
> By default this value is 60 sec, we want to decrease it to 10.
> I've tried to configure it as:
> ####################################################
>         ProxyPass / https://tomcat.server.ip/ retry=10 keepalive=on
>         ProxyPassReverse / https://tomcat.server.ip/
> ####################################################
> but from the log files we still see that the Apache server waits 60 secs
> instead of 10 :(
> Does someone any idea what did I missed?
> Thanks in advance!

The retry parameter to ProxyPass is how long apache will mark this
backend as broken once it receives a bad response[1]. It sounds more
like occasionally you cannot connect to the backend, which is
controlled globally by the directive Timeout[2], and specifically for
proxy connections by the directive ProxyTimeout[3], and for specific
backends by the 'timeout' parameter to ProxyPass.

Cheers

Tom

[1] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
[2] http://httpd.apache.org/docs/2.2/mod/core.html#timeout
[3] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxytimeout

---------------------------------------------------------------------
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


Mime
View raw message