From: Christos Tsantilas Date: Sun, 9 Nov 2014 21:21:15 +0000 (+0200) Subject: Make helper queue size configurable, with consistent defaults and better overflow... X-Git-Tag: merge-candidate-3-v1~501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6825b101b1773a3f5abcdc00010cdbce03cb5d63;p=thirdparty%2Fsquid.git Make helper queue size configurable, with consistent defaults and better overflow handling. This patch adds a queue-size=N option to helpers configuration. This option allows users to configure the maximum number of queued requests to busy helpers. We also adjusted the default queue size limits to be more consistent across all helpers and made Squid more robust on some queue overflows: - external_acl helpers Make the maximum queue size configurable via queue-size. Default to 2*maximum-number-of-children. If the queue overflows, then the ACL returns ACCESS_DUNNO. Unpatched code uses the number of running children as the maximum queue size. If the queue is overloaded, then the ACL returns ACCESS_DUNNO. -redirector/storeID helpers Make the maximum queue size configurable via queue-size. Default to 2*maximum-number-of-children. If the queue overflows and redirector_bypass configuration option is set, then redirector is bypassed. Otherwise, if overloading persists for more than 3 minutes squid quits with a FATAL message. If the redirector_bypass/storeID_bypass is set then the default queue_size is set to 0 for backward compatibility. Unpatched code uses 2*number-of-running-children as the maximum queue size. If the redirector_bypass/storeID_bypass is set then helper bypassed if all of the children are busy. If the queue is overloaded and redirector_bypass/storeID_bypass is not set then squid quits with a FATAL message. - ssl_crtd/ssl_crtd_validator helpers. Make the maximum queue size configurable via queue-size. Default to 2*maximum-number-of-children. If the queue overflows, then helpers are bypassed. If overloading persists for more than 3 minutes squid quits with a FATAL message. The default size limit and overflow behavior has not changed. - Authentication helpers Make the maximum queue size configurable via queue-size. Default to 2*maximum-number-of-children. If the queue overflows and overloading persists for more than 3 minutes, then squid quits with a FATAL message. The default size limit and overflow behavior has not changed. This is a Measurement Factory project --- diff --git a/doc/release-notes/release-3.6.html b/doc/release-notes/release-3.6.html index d140145d81..96be0194a1 100644 --- a/doc/release-notes/release-3.6.html +++ b/doc/release-notes/release-3.6.html @@ -24,7 +24,7 @@ for Applied Network Research and members of the Web Caching community.

2. Major new features since Squid-3.5

3. Changes to squid.conf since Squid-3.5

@@ -91,12 +91,11 @@ for how to submit a report with a stack trace.

Most user-facing changes are reflected in squid.conf (see below).

-

2.1 BLAH +

2.1 Configurable helper queue size

-

Details at -http://wiki.squid-cache.org/Features/BLAH.

- +

The new queue-size=N option to helpers configuration, allows users +to configure the maximum number of queued requests to busy helpers.

3. Changes to squid.conf since Squid-3.5

@@ -128,7 +127,29 @@ for how to submit a report with a stack trace.

+
auth_param
+

New parameter queue-size= to set the maximum number +of queued requests.

+ +
external_acl_type
+ +
+

New parameter queue-size= to set the maximum number +of queued requests.

+ +
url_rewrite_children
+ +
+

New parameter queue-size= to set the maximum number +of queued requests.

+ +
sslcrtd_children
+

New parameter queue-size= to set the maximum number +of queued requests.

+
sslcrtvalidator_children
+

New parameter queue-size= to set the maximum number +of queued requests.

diff --git a/doc/release-notes/release-3.6.sgml b/doc/release-notes/release-3.6.sgml index ba62613b98..dd36c54b19 100644 --- a/doc/release-notes/release-3.6.sgml +++ b/doc/release-notes/release-3.6.sgml @@ -44,9 +44,9 @@ The 3.6 change history can be . - +Configurable helper queue size +

The new queue-size=N option to helpers configuration, allows users +to configure the maximum number of queued requests to busy helpers. Changes to squid.conf since Squid-3.5

@@ -70,7 +70,25 @@ This section gives a thorough account of those changes in three categories: Changes to existing tags

+ auth_param +

New parameter queue-size= to set the maximum number + of queued requests. + + external_acl_type +

New parameter queue-size= to set the maximum number + of queued requests. + + url_rewrite_children +

New parameter queue-size= to set the maximum number + of queued requests. + + sslcrtd_children +

New parameter queue-size= to set the maximum number + of queued requests. + sslcrtvalidator_children +

New parameter queue-size= to set the maximum number + of queued requests. Removed tags