Return-Path:
Delivered-To: apmail-httpd-dev-archive@www.apache.org
Received: (qmail 1595 invoked from network); 23 Sep 2010 06:02:47 -0000
Received: from unknown (HELO mail.apache.org) (140.211.11.3)
by 140.211.11.9 with SMTP; 23 Sep 2010 06:02:47 -0000
Received: (qmail 36281 invoked by uid 500); 23 Sep 2010 06:02:46 -0000
Delivered-To: apmail-httpd-dev-archive@httpd.apache.org
Received: (qmail 35038 invoked by uid 500); 23 Sep 2010 06:02:44 -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 34276 invoked by uid 99); 23 Sep 2010 06:02:43 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 06:02:43 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=10.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9)
by apache.org (qpsmtpd/0.29) with SMTP; Thu, 23 Sep 2010 06:02:42 +0000
Received: (qmail 1367 invoked by uid 2161); 23 Sep 2010 06:02:22 -0000
Received: from [127.0.0.1] (localhost [127.0.0.1])
by euler.heimnetz.de (Postfix) with ESMTP id 0FCDA24044
for ; Thu, 23 Sep 2010 08:03:32 +0200 (CEST)
Message-ID: <4C9AEDB3.2000305@apache.org>
Date: Thu, 23 Sep 2010 08:03:31 +0200
From: Ruediger Pluem
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19
MIME-Version: 1.0
To: dev@httpd.apache.org
Subject: Re: svn commit: r1000130 -
/httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml
References: <20100922183716.8E5A2238890D@eris.apache.org>
In-Reply-To:
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
On 09/22/2010 08: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.
>
> 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
No. ttl is absolute. The resource list hands out no resources that have been
idle in the resource list for more then ttl. So no need to fiddle with
smax.
min only ensures that you always have at least min idle resources (of course
only if this does not increase the total number above hmax).
In the proxy case that does not mean that these resources have connections
to the backend. These are only created during their first real use.
So in short: Just set ttl to the keepalive of the backend minus some race seconds
for packet latency and don't care about the remaining stuff if don't want to
for other reasons.
Regards
R�diger