mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
do not use smp mode on squid
This commit is contained in:
@@ -5,7 +5,7 @@ cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=kojipkgs
|
||||
|
||||
cache_swap_low 98
|
||||
cache_swap_high 99
|
||||
cache_mem 6 GB
|
||||
cache_mem 32 GB
|
||||
maximum_object_size 200 MB
|
||||
minimum_object_size 0 KB
|
||||
cache_replacement_policy heap LFUDA
|
||||
@@ -94,13 +94,14 @@ coredump_dir /var/spool/squid
|
||||
pid_filename /var/run/squid/squid.pid
|
||||
|
||||
# Run in smp mode with 8 workers
|
||||
workers 8
|
||||
# smp mode seems to cause problems with partial downloads and hangs.
|
||||
#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} 10000 16 256
|
||||
endif
|
||||
#if ${process_number} = 9
|
||||
# # nothing
|
||||
#else
|
||||
# cache_dir ufs /var/spool/squid/${process_number} 10000 16 256
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user