[squid-users] How to increase TCP-HIT ratio

From: Michal Weinfurtner <weinfurt@dont-contact.us>
Date: Mon, 26 Jul 2004 11:18:20 +0200

Hello

I have two questions.
I discovered cache manager outputs and found that just 5-7% of hits
are served from cache. It is to few. I there any way to increase this
ratio ? My config is bellow.

Second question is about images. Sometimes, images are not loaded.
Mozilla FireFox says timeout, MSIE showx red cross in square. When user
do right click and show picture, image is always loaded. In access log
is not any antry about that image. Just after used show image, than
there is entry about success of download that image.

Any ideas ?

Thanks

Michal

My squid.conf file :

visible_hostname localhost
http_port 10.0.0.1:3128
acl localnet src 10.0.0.0/255.255.255.0
cache_mem 8 MB
maximum_object_size_in_memory 32 KB
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF
half_closed_clients off
cache_swap_high 100%
cache_swap_low 80%
shutdown_lifetime 3 seconds
icp_port 0
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_effective_user squid
cache_effective_group squid
pid_filename /var/run/squid.pid
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
emulate_httpd_log off
log_mime_hdrs off
forwarded_for off
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 445 443 441 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 445 443 441 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl manager proto cache_object
acl snmpublic src 10.0.0.0/255.255.255.0
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow localnet
http_access deny all
maximum_object_size 4096 KB
minimum_object_size 0 KB
cache_dir diskd /var/spool/squid 500 16 256
request_body_max_size 0 KB
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
logfile_rotate 5
coredump_dir /var/log/squid/
Received on Mon Jul 26 2004 - 03:18:12 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:02 MDT