Search squid archive

Re: Workers rock, aufs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/12/2013 09:11 AM, Marcos A. Dzieva wrote:
> Dear, I have tried to use workers with rock and aufs, but I could not
> make it work.
> 
> workers 4
> cache_dir rock /var/cache2/squid/rock 50000 min-size=1 max-size=31000
> max-swap-rate=250 swap-timeout=350
> if ${process_number} = 1
>    cache_dir aufs /var/cache/squid/aufs 850000 64 256 min-size=31001
> max-size=346030080
> endif
> if ${process_number} = 2
>    cache_dir aufs /var/cache2/squid/aufs 880000 64 256 min-size=31001
> max-size=346030080
> endif
> if ${process_number} = 3
>    cache_dir aufs /var/cache3/squid/aufs 930000 64 256 min-size=31001
> max-size=346030080
> endif
> if ${process_number} = 4
>    cache_dir aufs /var/cache4/squid/aufs 950000 64 256 min-size=31001
> max-size=346030080
> endif


> cache_dir aufs can not write to the hdd,

Can you detail that a bit more please? Why do you think Squid cannot
write to aufs directories? Does Squid try and fail? Or those directories
are just not getting any traffic?

Do those aufs dirs show up on cache manager mgr:storedir page?


> it seems that ${process_number} returns no value.

What makes you think that? Please make sure that you start Squid without -N.


Thank you,

Alex.
P.S. BTW, with a little bit of extra work (which I will not discuss here
to stay on topic), you could shorten the above config snippet to
something close to these three lines:

  workers 4
  cache_dir rock /var/cache2/squid/rock 50000 min-size=1 max-size=...
  cache_dir aufs /var/cache${process_number}/squid/aufs 850000 ...


> When using squid -z  ${process_number} returns correct value.
> 
> I am using the last squid 3.4 and Ubuntu 13.04.
> 
> You guys could help me with the configurations?
> 
> Thanks.
> Marcos A. Dzieva





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux