From: Luca Toscano The two default workers have a fixed configuration
and will be used if no other worker matches the request.
- They do not use HTTP Keep-Alive or connection pooling.
+ They do not use HTTP Keep-Alive or connection reuse.
The TCP connections to the origin server will instead be
opened and closed for each request. DNS resolution happens when the socket to
the origin domain is created for the first time.
- When connection pooling is used, each backend domain is resolved
- only once per child process, and reused for all further connections
+ When connection reuse is enabled, each backend domain is resolved
+ only once per child process, and cached for all further connections
until the child is recycled. This information should to be considered
while planning DNS maintenance tasks involving backend domains.
Please also check key=value
parameters, described in the tables
below.
By default, mod_proxy will allow and retain the maximum number of
connections that could be used simultaneously by that web server child
process. Use the max
parameter to reduce the number from
- the default. Use the ttl
parameter to set an optional
+ the default. The pool of connections is maintained per web server child
+ process, and max
and other settings are not coordinated
+ among all child processes, except when only one child process is allowed
+ by configuration or MPM design.
Use the ttl
parameter to set an optional
time to live; connections which have been unused for at least
ttl
seconds will be closed. ttl
can be used
to avoid using a connection which is subject to closing because of the
backend server's keep-alive timeout.
The pool of connections is maintained per web server child
- process, and max
and other settings are not coordinated
- among all child processes, except when only one child process is allowed
- by configuration or MPM design.
BalancerMember parameters |
---|
Worker|BalancerMember parameters |
---|
Parameter | Default | @@ -1057,7 +1063,10 @@ ProxyPass "/mirror/foo" "http://backend.example.com" httpd and the backend server (regardless of protocol) tends to silently drop connections or when backends themselves may be under round- - robin DNS. To disable connection pooling reuse, + robin DNS. + When connection reuse is enabled each backend domain is resolved + (with a DNS query) only once per child process and cached for all further + connections until the child is recycled. To disable connection reuse, set this property value to
---|---|
enablereuse | diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml index fac574425b..fa1e5cc8f1 100644 --- a/docs/manual/mod/mod_proxy_fcgi.xml +++ b/docs/manual/mod/mod_proxy_fcgi.xml @@ -85,7 +85,7 @@ ProxyPass "/myapp/" "fcgi://localhost:4000/" enablereuse=on