[squid-users] Can`t cache always TCP_MISS

Jacek Zaleski dzaczek at sysop.cat
Wed May 11 10:43:11 UTC 2016


Hi
i try use squid in my centos7 in 99% request i have TCP_MISS/200

Debugging
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(202) clientStreamDetach: clientStreamDetach: Detaching node 0x186e1a8
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(287) clientStreamFree: Freeing clientStreamNode 0x186e1a8
2016/05/11 10:45:20.752 kid1| 33,3| client_side_request.cc(246) ~ClientHttpRequest: httpRequestFree: [http://...../comment_0YDv8xlTGc73vg9AR6jf5WDDmoyydKOd.jpg](http://x3.cdn03.imgwykop.pl/c3201142/comment_0YDv8xlTGc73vg9AR6jf5WDDmoyydKOd.jpg)
2016/05/11 10:45:20.752 kid1| 28,3| Checklist.cc(70) preCheck: 0x7ffc45e07fb0 checking fast ACLs
2016/05/11 10:45:20.752 kid1| 28,3| Acl.cc(158) matches: checked: (access_log daemon:/var/log/squid/access.log line) = 1
2016/05/11 10:45:20.752 kid1| 28,3| Acl.cc(158) matches: checked: access_log daemon:/var/log/squid/access.log = 1
2016/05/11 10:45:20.752 kid1| 28,3| Checklist.cc(63) markFinished: 0x7ffc45e07fb0 answer ALLOWED for match
2016/05/11 10:45:20.752 kid1| 50,3| ModDaemon.cc(172) logfile_mod_daemon_append: logfile_mod_daemon_append: daemon:/var/log/squid/access.log: appending 1 bytes
2016/05/11 10:45:20.752 kid1| 50,3| ModDaemon.cc(176) logfile_mod_daemon_append: logfile_mod_daemon_append: current buffer has 0 of 32768 bytes before append
2016/05/11 10:45:20.752 kid1| 50,3| ModDaemon.cc(172) logfile_mod_daemon_append: logfile_mod_daemon_append: daemon:/var/log/squid/access.log: appending 181 bytes
2016/05/11 10:45:20.752 kid1| 50,3| ModDaemon.cc(176) logfile_mod_daemon_append: logfile_mod_daemon_append: current buffer has 1 of 32768 bytes before append
2016/05/11 10:45:20.752 kid1| 20,3| store.cc(522) unlock: ClientHttpRequest::loggingEntry unlocking key BFEF2FA9F34CA1BA1A2D2366AC5469A6 e:=sp2DV/0x144d060*2
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(247) clientStreamAbort: clientStreamAbort: Aborting stream with tail 0x1891888
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(202) clientStreamDetach: clientStreamDetach: Detaching node 0x1891888
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(223) clientStreamDetach: clientStreamDetach: Calling 1 with cbdata 0x18a9b60
2016/05/11 10:45:20.752 kid1| 87,3| clientStream.cc(287) clientStreamFree: Freeing clientStreamNode 0x1891888
2016/05/11 10:45:20.752 kid1| 90,3| store_client.cc(664) storeUnregister: storeUnregister: called for 'BFEF2FA9F34CA1BA1A2D2366AC5469A6'
2016/05/11 10:45:20.752 kid1| 20,3| store_swapout.cc(356) mayStartSwapOut: already rejected
2016/05/11 10:45:20.752 kid1| 20,3| store.cc(484) lock: storeUnregister locked key BFEF2FA9F34CA1BA1A2D2366AC5469A6 e:=sp2DV/0x144d060*2
2016/05/11 10:45:20.752 kid1| 90,3| store_client.cc(758) storePendingNClients: storePendingNClients: returning 0
2016/05/11 10:45:20.752 kid1| 20,3| store.cc(522) unlock: storeUnregister unlocking key BFEF2FA9F34CA1BA1A2D2366AC5469A6 e:=sp2DV/0x144d060*2
2016/05/11 10:45:20.752 kid1| 20,3| store.cc(522) unlock: clientReplyContext::removeStoreReference unlocking key BFEF2FA9F34CA1BA1A2D2366AC5469A6 e:=sp2DV/0x144d060*1
2016/05/11 10:45:20.752 kid1| 90,3| store_client.cc(758) storePendingNClients: storePendingNClients: returning 0
2016/05/11 10:45:20.752 kid1| 33,3| client_side.cc(1611) keepaliveNextRequest: local=10.150.22.235:3121 remote=10.150.21.23:53074 FD 11 flags=1: calling conn->readNextRequest()
2016/05/11 10:45:20.752 kid1| 5,3| comm.cc(553) commSetConnTimeout: local=10.150.22.235:3121 remote=10.150.21.23:53074 FD 11 flags=1 timeout 120

My config pats

cache dir :
98 cache_mem 800 MB
99 logfile_rotate 10
100 memory_pools off
101 minimum_object_size 0 bytes
102 maximum_object_size 200 MB
103 maximum_object_size_in_memory 512 KB
104 #quick_abort_min 0 KB
105 #quick_abort_max 0 KB
106 log_icp_queries off
107 client_db off
108 buffered_logs on
109 half_closed_clients off
110 cache_log /var/log/squid/cache1.log
111
112 # Uncomment and adjust the following to add a disk cache directory.
113 cache_dir aufs /squid-cache 65536 128 256 min-size=512000
114
115 # Leave coredumps in the first cache dir
116 coredump_dir /var/spool/squid
117
118 #error_directory /usr/share/nginx/404site
119 #Special Options for 0365
120 forward_max_tries 25
121 #



patterns :

124 refresh_pattern ^ftp: 1440 20% 10080
125 refresh_pattern ^gopher: 1440 0% 1440
126 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
127 refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
128 refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
129 refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
130 refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
131 refresh_pattern . 600 40% 40320 ignore-no-store override-expire
132 cache allow all
133 cache_effective_user squid
134 cache_effective_group squid
135 ## allow replies to client requests
136 http_reply_access allow all
Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160511/4392dc81/attachment-0001.html>


More information about the squid-users mailing list