Hi,
I have an issue: if I restart Squid (with Rock storage), I can no longer get TCP_MEM_HIT for any object got cached before that restart -- I always get TCP_HIT instead.
Steps to reproduce: 1) Stop squid. 2) Remove & create a new Rock storage, start Squid. 3) Get a url via Squid, e.g.: curl -o /dev/null -v -x localhost:3128 http://cdn.bootcss.com/font-linux/0.9/font-linux.woff Suppose Squid is running on localhost:3128. This should get a TCP_MISS. 4) Repeat step 3, and this should get a TCP_MEM_HIT. 5) Stop & start Squid. 6) Repeat step 3 for more than 2 times, and all the results are TCP_HIT, however I expect the 2nd and following rounds should be TCP_MEM_HIT.
So it seems an object can never be copied from disk cache to memory cache after a restart. Is this normal? I tested 3.5.27 and master branch in github, the results are same. The configuration file is attached.
Thanks. Duan, Yao |
workers 2 shutdown_lifetime 3 second acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https 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 http_access deny !Safe_ports http_access deny CONNECT !SSL_ports acl PURGE method PURGE http_access allow PURGE localhost http_access deny PURGE http_access allow localhost manager http_access deny manager http_access allow localnet http_access allow localhost http_access deny all http_port 3128 cache_dir rock /home/duanyao/project/proxy/squid-root/var/cache/squid/rock 10 cache_effective_user duanyao
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users