[squid-users] worker per cache_dir

Marcel Fossua marcel at guineanet.net
Wed Jun 3 17:18:00 UTC 2015


Hi All 
hope someone can give me a way to accomplish what I have in mind 
I have 3.5.5 running with 9 workers active (the best numbers a get without
errors)
so I just set 1 worker per disk as schema below but I have a jbod with lot
of disk I would like to add on squid.conf obviously the idea of 1 worker
/disk is not longer a good deal then what is the best config to make let say
worker 1 deal with several cache (3 or 4 for the occurence) 
so I could set 3 o 4 cache_dir per worker.

Thanks

/cache_dir rock /cache1 460000 min-size=1 max-size=31000 max-swap-rate=200 
swap-timeout=300

#  200GB x 8 caches of large ( over 32KB) objects per-worker 
if ${process_number} = 1
cache_dir aufs /cache2   275000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 2
cache_dir aufs /cache3   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 3
cache_dir aufs /cache4   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 4
cache_dir aufs /cache5   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 5
cache_dir aufs /cache6   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 6
cache_dir aufs /cache7   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 7
cache_dir aufs /cache8   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 8
cache_dir aufs /cache9   190000  32 256 min-size=31001 max-size=1048576000
endif
if ${process_number} = 9
cache_dir aufs /cache10   190000  32 256 min-size=31001 max-size=1048576000
endif/



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/worker-per-cache-dir-tp4671510.html
Sent from the Squid - Users mailing list archive at Nabble.com.


More information about the squid-users mailing list