From 3e9d5a2031abccf378c59146eb63c65d3be14d60 Mon Sep 17 00:00:00 2001 From: Paul Querna Date: Sat, 11 Dec 2004 08:25:39 +0000 Subject: [PATCH] * mod/mod_proxy.xml: First Draft trying to explain how to tune pooled connections. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111587 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_proxy.html.en | 22 +++++++++++++++++++++- docs/manual/mod/mod_proxy.xml | 26 +++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index 786862070c..7bc940596c 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -718,7 +718,7 @@ through

ProxyPass Directive

- + @@ -758,6 +758,26 @@ through general ProxyPass directive.

+

New in Apache 2.1, is the ability to use pooled connections to a + backend server. Using the key=value parameters it is possible + to tune this connection pooling. The default for a Hard Maximum + for the number of connections is the number of threads per process in the + active MPM. In the Prefork MPM, this is always 1, while with the Worker MPM + it is controlled by the ThreadsPerChild.

+ +

Setting min will determine how many connections will always + be open to the backend server. Upto 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 + will never create more than the Hard Maximum or hmax connections + to the backend server.

+ +

+ ProxyPass /example http://backend.example.com min=0 smax=5 hmax=20 ttl=60 +

+ + +

When used inside a <Location> section, the first argument is omitted and the local directory is obtained from the <Location>.

diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 307a433088..081ae2edef 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -532,7 +532,7 @@ expressions ProxyPass Maps remote servers into the local server URL-space -ProxyPass [path] !|url +ProxyPass [path] !|url [key=value key=value ...]] server configvirtual host directory @@ -573,6 +573,30 @@ expressions general ProxyPass directive.

+

New in Apache 2.1, is the ability to use pooled connections to a + backend server. Using the key=value parameters it is possible + to tune this connection pooling. The default for a Hard Maximum + for the number of connections is the number of threads per process in the + active MPM. In the Prefork MPM, this is always 1, while with the Worker MPM + it is controlled by the ThreadsPerChild.

+ +

Setting min will determine how many connections will always + be open to the backend server. Upto 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 + will never create more than the Hard Maximum or hmax connections + to the backend server.

+ + + ProxyPass /example http://backend.example.com min=0 smax=5 hmax=20 ttl=60 + + + +

When used inside a Location section, the first argument is omitted and the local directory is obtained from the

Description:Maps remote servers into the local server URL-space
Syntax:ProxyPass [path] !|url
Syntax:ProxyPass [path] !|url [key=value key=value ...]]
Context:server config, virtual host, directory
Status:Extension
Module:mod_proxy