On Tue, Feb 15, 2011 at 12:33 PM, Szász Csaba <szasz.cs...@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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to