[squid-users] Cache dir
Amos Jeffries
squid3 at treenet.co.nz
Tue Jan 14 02:34:12 UTC 2025
On 13/01/25 20:46, Jonathan Lee wrote:
> It's more about how many squid workers to start. Then the OS will do the
> allocation
>
> Thanks for the reply I only have one worker.
>
> I can’t do workers 3 on my system because I would have to disable the
> cache as it won’t do rock cache. This system does not support rock cache.
That is odd. The system features used by "rock" cache controller are the
same ones used by "workers 2".
I suggest looking into why "rock" is not usable. It is the best cache
type for your needs.
>
> Worker directive does work with cache disabled but if I have it set to
> diskd and enable workers, I also have to increase buffering to do that.
"diskd" controller does not support SMP (simple multi-process) which is
what the "workers" directive turns on when given values greater than 1.
> Can I add workers on diskd?
Both No and Yes.
No, in that you cannot just configure "workers 3" on a proxy with a
diskd cache_dir.
Yes, in that you can restrict the cache_dir line with "if
${process_number} = N" conditions so only **one** worker will attempt
to use that storage location.
> It says assertion failed: Controller cc:930
> failed if I try. So I assume I am restricted to use disk cache or use
> workers right?
See above.
Cheers
Amos
More information about the squid-users
mailing list