Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 10421 invoked from network); 22 Sep 2010 19:19:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 19:19:02 -0000 Received: (qmail 9555 invoked by uid 500); 22 Sep 2010 19:19:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 9483 invoked by uid 500); 22 Sep 2010 19:19:01 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 9475 invoked by uid 99); 22 Sep 2010 19:19:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 19:19:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trawick@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 19:18:53 +0000 Received: by eyf18 with SMTP id 18so430910eyf.18 for ; Wed, 22 Sep 2010 12:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=KNw1Wc8bKJvDsBiGv7kqCDd855weacyxe+8VfyyqS74=; b=i3EZWCbTYSOnHLfryxh9pexHxIRbDmM5OYpP5Mc7+M9/vOI++sPq/JvXR/Fyp8G3/p e/bHYxT11Gc3Wpo0vQCx6l7ApRu0EIbKrKxf6bcDeJEOqx3n+PqFIG1G3U59UhXALfpm Uto8KoWIcq/5EpCmAYzpmPF3NcZpxkQlNFFRA= 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=S/OL6kGfNase2pvfEf1VE4+TV/iks4sHkxgWfYWudaL2b4xPBXgEftQWWRsP1ssei+ h3TkEp8/THhBTK0AR+X6nPFLS8YIYkDq4ZaGbNCe73XpkI3z+1HpngBTvM67MIPBcrYl 1WoM3j4GBcrvbn0AKi+oB+26WajLTQQJxDfTw= MIME-Version: 1.0 Received: by 10.213.112.196 with SMTP id x4mr5886542ebp.74.1285183113052; Wed, 22 Sep 2010 12:18:33 -0700 (PDT) Received: by 10.213.17.140 with HTTP; Wed, 22 Sep 2010 12:18:33 -0700 (PDT) In-Reply-To: References: <20100922183716.8E5A2238890D@eris.apache.org> Date: Wed, 22 Sep 2010 15:18:33 -0400 Message-ID: Subject: Re: svn commit: r1000130 - /httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml From: Jeff Trawick To: dev@httpd.apache.org Content-Type: multipart/alternative; boundary=0015174beceaecc2230490de02a1 X-Virus-Checked: Checked by ClamAV on apache.org --0015174beceaecc2230490de02a1 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 22, 2010 at 2:59 PM, Jeff Trawick wrote: > On Wed, Sep 22, 2010 at 2:37 PM, wrote: > >> Author: trawick >> Date: Wed Sep 22 18:37:16 2010 >> New Revision: 1000130 >> >> URL: http://svn.apache.org/viewvc?rev=1000130&view=rev >> Log: >> follow up r956069 with additional clarifications >> about the connection pool and related parameters >> (yes, and fix part of those earlier "clarifications") >> >> Modified: >> httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml >> >> Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml >> URL: >> http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml?rev=1000130&r1=1000129&r2=1000130&view=diff >> >> ============================================================================== >> --- httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml (original) >> +++ httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml Wed Sep 22 18:37:16 >> 2010 >> @@ -764,13 +764,12 @@ expressions >> using key=value parameters, described in the table >> below.

>> >> -

Setting min will determine how many connections to >> - the backend server will be retained after use. Up to the >> - Soft Maximum, or smax, number of connections will be >> - created on demand. Any connections above smax are >> - subject to a time to live, or ttl. Apache httpd will >> - never create more than the Hard Maximum or, max, >> - connections to the backend server.

>> +

Setting min to non-zero allows connections to the >> + backend server to be retained after use; > > > That last sentence is wrong, isn't it? (I'm using the > two-steps-forward/one-step-back approach until I can't go any further. At > least you don't have to look at the doc for apr_reslist_create() anymore ;) > ) > > I honestly don't know what min is used for since we only create connections > on demand, unless min=0 means don't retain, and min>0 means retain. > Is the following true about min? min only controls how many of the potential retained connection structures (1-max) will be created when the reslist is created. It has no bearing on connections, only on when the reslist data and memory pools are created. So it only needs to be set to non-zero if the admin wants the pools associated with the potential reslist elements to be created ASAP (for some cases that would be in child init hooks). > What I want to do as a user today: retain connections but don't use any if > they've been idle for >= origin-server-keepalive seconds. > > ttl is the only timeout avail, so that has to be set to the origin's > keepalive timeout > ttl only applies to connections above smax, so smax needs to be set as low > as allowable > > so perhaps > > ProxyPass / http://xxx/ ttl=5 smax={0,1,whatever it will accept} > I'm still having issues with conn-reset while trying to read the status line from the origin server, using the following: ProxyPass /proxy/ http://192.168.1.208:8080/weblogic/ min=0 ttl=5 smax=0 --0015174beceaecc2230490de02a1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Sep 22, 2010 at 2:59 PM, Jeff Trawick <trawick@gmail.com<= /a>> wrote:
On Wed, Sep 22= , 2010 at 2:37 PM, <trawick@apache.org> wrote:
Author: trawick
Date: Wed Sep 22 18:37:16 2010
New Revision: 1000130

URL: http://svn.apache.org/viewvc?rev=3D1000130&view=3Drev=
Log:
follow up r956069 with additional clarifications
about the connection pool and related parameters
(yes, and fix part of those earlier "clarifications")

Modified:
=A0 =A0httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/d= ocs/manual/mod/mod_proxy.xml?rev=3D1000130&r1=3D1000129&r2=3D100013= 0&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml Wed Sep 22 18:37:16 201= 0
@@ -764,13 +764,12 @@ expressions</description>
=A0 =A0 using =A0<code>key=3Dvalue</code> parameters, describe= d in the table
=A0 =A0 below.</p>

- =A0 =A0<p>Setting <code>min</code> will determine how m= any connections to
- =A0 =A0the backend server will be retained after use. =A0Up to the
- =A0 =A0Soft Maximum, or <code>smax</code>, number of connecti= ons will be
- =A0 =A0created on demand. =A0Any connections above <code>smax</c= ode> are
- =A0 =A0subject to a time to live, or <code>ttl</code>. =A0Apa= che httpd will
- =A0 =A0never create more than the Hard Maximum or, <code>max</co= de>,
- =A0 =A0connections to the backend server.</p>
+ =A0 =A0<p>Setting <code>min</code> to non-zero allows c= onnections to the
+ =A0 =A0backend server to be retained after use;
=

That last sentence is wrong, isn't it?=A0 (I'm using the t= wo-steps-forward/one-step-back approach until I can't go any further.= =A0 At least you don't have to look at the doc for apr_reslist_create()= anymore ;) )

I honestly don't know what min is used for since we only create con= nections on demand, unless min=3D0 means don't retain, and min>0 mea= ns retain.

Is the following true about= min?

min only controls how many of the potential retained connection structu= res (1-max)=A0 will be created when the reslist is created.=A0 It has no be= aring on connections, only on when the reslist data and memory pools are cr= eated.=A0 So it only needs to be set to non-zero if the admin wants the poo= ls associated with the potential reslist elements to be created ASAP (for s= ome cases that would be in child init hooks).



What I want to do as a user today: retain = connections but don't use any if they've been idle for >=3D orig= in-server-keepalive seconds.

ttl is the only timeout avail, so that has to be set to the origin'= s keepalive timeout
ttl only applies to connections above smax, so smax = needs to be set as low as allowable

so perhaps

ProxyPass / http://xxx/ =A0 ttl=3D5=A0 smax= =3D{0,1,whatever it will accept}

I'm still having issues with conn-reset while tr= ying to read the status line from the origin server, using the following:
ProxyPass /proxy/ htt= p://192.168.1.208:8080/weblogic/ min=3D0 ttl=3D5 smax=3D0


--0015174beceaecc2230490de02a1--