Re: [squid-users] Workers rock, aufs

From: Alfredo Rezinovsky <alfredo_at_fing.uncu.edu.ar>
Date: Fri, 13 Sep 2013 06:59:09 -0300

El 12/09/13 12:11, Marcos A. Dzieva escribió:
> 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
>
it seems more simple to do this:
cache_dir aufs /var/cache/squid/${process_number}/aufs ....

probably /var/cache/ has no write permission for your squid user.
is better to give permissions to one directory than multiple.
Having all your caches under /var/cache/squid will also work is you
increase your workers number
> cache_dir rock works well.
> cache_dir aufs can not write to the hdd, it seems that
> ${process_number} returns no value.
> 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
>
>
Received on Fri Sep 13 2013 - 10:00:03 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 13 2013 - 12:00:07 MDT