Re: [squid-users] Beta testers wanted for 3.2.0.1 - Changing 'workers' (from 1 to 2) is not supported and ignored

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 30 Nov 2010 03:07:41 +1300

On 30/11/10 02:41, Ming Fu wrote:
> Hi Henrik,
>
> Thanks for point out that I need to use the if..else--endif statement, however, I can't find the condition macros for the if to test.
>
> For example,
>
> If "first worker"
> Cache_dir here ...
> Else
> Cache_dir there ...
> Endif
>
> How do I say the "first worker"?

if ${process_number} = 1
...
else
...
endif

Another method if you want a cache_dir for each is to have a numbered
subdirectory for each worker:

   cache_dir aufs /var/cache/${process_number} ...

Then squid -z to create as usual. Just remember that this will take up N
times the configured directory size.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.9
   Beta testers wanted for 3.2.0.3
Received on Mon Nov 29 2010 - 14:07:48 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 29 2010 - 12:00:03 MST