On 30/11/10 04:33, Ming Fu wrote:
The cache_dir setting in the if..else ..endif does not seem to take effect. Squid -z does create the cache subdirectory without issue, but the squid seems to use the default cache directory as if didn't see the if statement. ===== squid.conf==== workers 2 if ${process_number} = 1 cache_dir aufs /usr/local/squid/var/a 500 16 256 else cache_dir aufs /usr/local/squid/var/b 500 16 256 endif ============================== =====logs=========== 2010/11/29 15:23:56 kid1| Starting Squid Cache version 3.2.0.3 for amd64-unknown-freebsd8.1... 2010/11/29 15:23:56 kid1| Set Current Directory to /usr/local/squid/var/cache 2010/11/29 15:23:58 kid1| basic/basicScheme.cc(64) done: Basic authentication Schema Detached. 2010/11/29 15:23:58 kid3| basic/basicScheme.cc(64) done: Basic authentication Schema Detached.
Hmm, Schema Detatch is not good. It means any change to basic auth will need a full restart instead of a reconfigure. That limit is no longer normal in squid-3.2+.
2010/11/29 15:27:04 kid3| Starting Squid Cache version 3.2.0.3 for amd64-unknown-freebsd8.1... 2010/11/29 15:27:04 kid2| Starting Squid Cache version 3.2.0.3 for amd64-unknown-freebsd8.1... 2010/11/29 15:27:04 kid1| Starting Squid Cache version 3.2.0.3 for amd64-unknown-freebsd8.1... 2010/11/29 15:27:04 kid3| Set Current Directory to /usr/local/squid/var/cache 2010/11/29 15:27:04 kid1| Set Current Directory to /usr/local/squid/var/cache 2010/11/29 15:27:04 kid2| Set Current Directory to /usr/local/squid/var/cache
Note how .../var/cache is not in your config at all. It is a default home location for the core dumps etc.
FATAL: kid2 registration timed out
... something else is causing the worker process not to make contact with the coordinator process.
Amos -- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.9 Beta testers wanted for 3.2.0.3