httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Szász Csaba <szasz.cs...@gmail.com>
Subject Re: [users@httpd] Reverse Proxy - retry parameter in Apache/2.2.3.
Date Tue, 15 Feb 2011 14:08:30 GMT
Hi,

Dear Tom thanks for your mail.

AFAIK, Timeout parameters is about how long time should the Apache wait for
the answer from the backend servers.
Our problem is that when the server couldn't answer for 1 request (returns
with 503) it marks the backend server as unavailable, and waits 60 sec
before it checks the server again.

That's why we want to use the retry parameter to decrease the wait time
before the Apache try to reach the server again.

The configuration is the same as in the [1] example, however it ignores the
retry parameter I set. :(

2011/2/15 Tom Evans <tevans.uk@googlemail.com>

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


-- 
Üdvözlettel / Best Regards / Mit freundlichen Grüßen
Tsaby


  ()()      (\__/)     (\__/)
 ( '.' )     (O.o )    (='.'=)
(")_(")    (> < )    (")_(")

These are three Bunnies.
Copy Bunnies into your signature to help them on theirs way to world
domination!

Mime
View raw message