From: Alex Rousskov Date: Fri, 2 Jul 2010 01:37:21 +0000 (-0600) Subject: Added SMP scalability section. X-Git-Tag: SQUID_3_2_0_1~93^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a67c462cc186bd28df003bbeb493ac7b1a8c0962;p=thirdparty%2Fsquid.git Added SMP scalability section. --- diff --git a/doc/release-notes/release-3.2.sgml b/doc/release-notes/release-3.2.sgml index 508639a0ea..413d39d057 100644 --- a/doc/release-notes/release-3.2.sgml +++ b/doc/release-notes/release-3.2.sgml @@ -34,6 +34,7 @@ The 3.2 change history can be SMP scalability +

The new "workers" squid.conf option can be used to launch multiple worker + processes and utilize multiple CPU cores. The overall intent is to make + multiple workers look like one to an outside observer, while providing + knobs to customize each worker behavior if needed. + +

By default, all worker processes are configured identically and do what a + single Squid instance would have done. Squid.conf macro substitutions and + conditionals (see below) can be used to customize individual worker + configurations. In the paragraphs below, "can share" implies "will share by + default". + +

Workers can share HTTP, HTTPS, SNMP, ICP, and HTCP listening addresses. + Configuration related to ICP and HTCP clients must be adjusted to avoid + source address conflicts: Modify the IP address and/or the port used for + the protocol. Workers do not share DNS addresses by default because the OS + assigns each worker a unique DNS port. + +

Workers can share logs. + +

Workers cannot share caches, for now. Cache_dir options must be adjusted to + point each disk-caching worker to its own disk area. ICP and HTCP responses + are based on the responding worker cache state. Overall, SMP Squid behaves + as a Squid farm behind a load-balancer with no cache affinity awareness. + This is perfect for non-caching Squids but inappropriate for Squids that + must coordinate caching activities (in-between environments are in a gray + area requiring case-by-case analysis). + +

Cache manager and SNMP statistics are reported from a worker point of + view, for now. + +

Startup, reconfiguration, shutdown, and log rotation are handled as for a + monolithic Squid. Abnormally terminated workers are restarted while + other workers continue serving traffic. + + +Squid.conf macros and conditionals +

Added support for process_name and process_number macros as well as simple + if-statement conditionals in squid.conf. These features allow individual + worker customization in SMP mode. For details, search for "Conditional + configuration" and "SMP-Related Macros" sections in squid.conf.documented. + + Helper Multiplexer

The helper multiplexer's purpose is to relieve some of the burden Squid has when dealing with slow helpers. It does so by acting as a