[squid-users] cache config

Alex Gutiérrez Martínez alex at dvm.esines.cu
Wed Sep 6 13:26:00 UTC 2017


Hi everyone, i have 100 GB on my cache partition, but squid only use 1.5 
GB. My internet connection its incredibly slow, any advice on how 
optimize my connection will be appreciated.

This is the configuration of my cache.

maximum_object_size 300 MB
cache_dir aufs /var/cache/squid3 1024000 16 256
cache_mem 256 MB
cache_store_log /var/cache/squid3/cache_store.log
coredump_dir /var/cache/squid3/dump
minimum_expiry_time 600 seconds
cache_swap_low 87
cache_swap_high 90
############################
client_db off
offline_mode off
cache_swap_low 87
cache_swap_high 90
cache_replacement_policy heap GDSF
maximum_object_size_in_memory 128 KB
chunked_request_body_max_size 4096 KB
half_closed_clients off
############################
# establecemos los archivos de volcado en /var/cache/squid3/
coredump_dir /var/cache/squid3/
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 
override-expire ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 
432000 override-expire ignore-no-store ignore-private
refresh_pattern -i 
\.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff|pdf)$ 10080 90% 
43200 override-expire ignore-no-store ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern . 0 40% 40320

-- 
Saludos Cordiales

Lic. Alex Gutiérrez Martínez





More information about the squid-users mailing list