Re: Reverse Proxy - retry parameter in Apache/2.2.3.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
 "  from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux