Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 64914 invoked from network); 15 Feb 2011 14:09:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 14:09:07 -0000 Received: (qmail 87691 invoked by uid 500); 15 Feb 2011 14:09:03 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87069 invoked by uid 500); 15 Feb 2011 14:08:59 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 87061 invoked by uid 99); 15 Feb 2011 14:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 14:08:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of szasz.csabi@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 14:08:51 +0000 Received: by qwk4 with SMTP id 4so147620qwk.18 for ; Tue, 15 Feb 2011 06:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=KodIZDp1M2NNykXreBs6Y/jbglE/++cs+PW0kVDIZPM=; b=Ld8ig40TsN2H9BK/PPxFmO48sRoT9t1eXbqdAp1hi8WDTvbcXEelIKfavQbXxvVeU4 L20DuCjGbenhsAMt3+Hplx8HrXkfnqDJ9FrravggXisEsUJdkrjk39+givzE5j1LBW1t LpXSXj24vrNB+GmcPv1N5xdu0xucgCmqLjfHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jHijHmK0B8bNvzuFct/NyDuWH4BvF6wqAuRNpEWqSgQAkXj92PYxzkEpiOCD+FOXMh unxanujPRP091NU6HV2Ww5q1a+TcD5/6td/WVuzH35VzEtOeqhlD9kNU57pUEvdpgJ74 Il0lDedWM8Jc6fMEf2RFqWXVLz1fN/33NtzQs= MIME-Version: 1.0 Received: by 10.229.86.7 with SMTP id q7mr3914466qcl.262.1297778910520; Tue, 15 Feb 2011 06:08:30 -0800 (PST) Received: by 10.229.190.21 with HTTP; Tue, 15 Feb 2011 06:08:30 -0800 (PST) In-Reply-To: References: Date: Tue, 15 Feb 2011 15:08:30 +0100 Message-ID: From: =?UTF-8?B?U3rDoXN6IENzYWJh?= To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=00163642751ff564a5049c52b22e X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Reverse Proxy - retry parameter in Apache/2.2.3. --00163642751ff564a5049c52b22e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > On Tue, Feb 15, 2011 at 12:33 PM, Sz=C3=A1sz Csaba > 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 Apac= he > & > > 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=3D10 keepalive=3Don > > ProxyPassReverse / https://tomcat.server.ip/ > > #################################################### > > but from the log files we still see that the Apache server waits 60 sec= s > > 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 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 > > --=20 =C3=9Cdv=C3=B6zlettel / Best Regards / Mit freundlichen Gr=C3=BC=C3=9Fen Tsaby ()() (\__/) (\__/) ( '.' ) (O.o ) (=3D'.'=3D) (")_(") (> < ) (")_(") These are three Bunnies. Copy Bunnies into your signature to help them on theirs way to world domination! --00163642751ff564a5049c52b22e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

Dear Tom thanks for your mail.=C2=A0

<= /div>
AFAIK, Timeout parameters is about how long time should the Apach= e wait for the answer from the backend servers.
Our problem is th= at 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 de= crease the wait time before the Apache try to reach the server again.
=

The configuration is the same as in the [1] example, ho= wever 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=C3=A1sz 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 Apa= che &
> Tomcat gets broken (we are still investogate the cause) To decrease th= e
> 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:
> ####################################################
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0ProxyPass /=C2=A0https://tomcat.server.ip/=C2=A0retr= y=3D10 keepalive=3Don
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0ProxyPassReverse /=C2=A0https://tomcat.server.ip/ > ####################################################
> but from the log files we still see that the Apache server waits 60 se= cs
> 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#pr= oxypass
[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.<= br> See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=C2=A0 " =C2=A0 from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
=C3=9Cdv=C3=B6zlettel /= Best Regards / Mit freundlichen Gr=C3=BC=C3=9Fen=C2=A0
Tsaby

=C2=A0=C2=A0()()=C2=A0 =C2=A0 =C2=A0 (\__/)=C2=A0 =C2=A0=C2=A0 (\__/) =C2=A0( '.' )=C2=A0 =C2=A0=C2=A0 (O.o )=C2=A0 =C2=A0 (=3D'.= 9;=3D)
(")_(")=C2=A0 =C2=A0 (> < )=C2=A0 =C2=A0 (")= _(")

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

--00163642751ff564a5049c52b22e--