More smp improvements

This commit is contained in:
Kevin Fenzi 2015-04-23 15:51:49 +00:00
parent 1285e4eccd
commit 5065004330

View file

@ -6,15 +6,13 @@ hierarchy_stoplist cgi-bin ?
cache_swap_low 98
cache_swap_high 99
cache_mem 10 GB
cache_mem 32 GB
maximum_object_size 200 MB
minimum_object_size 0 KB
cache_replacement_policy heap LFUDA
maximum_object_size_in_memory 100 MB
memory_replacement_policy heap LFUDA
cache_dir ufs /var/spool/squid 81920 16 256
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
@ -84,3 +82,12 @@ pid_filename /var/run/squid/squid.pid
# Run in smp mode with 8 workers
workers 8
# In smp mode you have to specify per worker cache dirs
# Also you have to manually run squid -z -F -f /etc/squid/squid.conf
# to create these dirs.
if ${process_number} = 9
# nothing
else
cache_dir ufs /var/spool/squid/${process_number} 12500 16 256
endif