[squid-users] RE: TCP_MISS/200 with squid-2.7.STABLE6 Reverse proxy config

From: Andy Litzinger <Andy.Litzinger_at_theplatform.com>
Date: Fri, 17 Apr 2009 08:27:08 -0700

Have you tried bumping up the logging level and seeing what the cache.log tells you? http://www.squid-cache.org/Versions/v2/2.7/cfgman/debug_options.html

You could try bumping up the debug level for all components, or you could focus on particular section.

If I were you I might start with bumping up debug for all components to level 3 (of 9):
debug_options ALL,3

you can keep bumping that up, but if the log gets too verbose for you to parse you might try debugging only the sections that are likely culprits. The list of debug sections can be found in the source tarball under doc/debug-sections.txt . also in Ch. 16 of the O'reilly squid book if you have it (thought the list there is not as up to date)

so for an example, if you were wanted to up the debug level to 3 on just access controls you could try the following:
debug_options ALL,1 28,3

You'll find it's easier to parse these debug messages if you do this in a test or low request volume environment.

Also, do you have any example requests that you expect to cache, but aren't?

-andy

> -----Original Message-----
> From: Quin Guin [mailto:quinguin_at_yahoo.com]
> Sent: Thursday, April 16, 2009 1:19 PM
> To: squid-users_at_squid-cache.org
> Subject: TCP_MISS/200 with squid-2.7.STABLE6 Reverse proxy config
>
>
> Hi,
>
> I have been using squid for many years as a forward proxy and now I
> need to setup a reverse. I have read and study many different email
> threads and FAQ on this topic but I can't seem to get past
> TCP_MISS/200s. Please see my most basic config below and I know there
> is a lot more that can be done to make it more secure but I am just
> trying to get a TCP_MISS/200 then a TCP_HIT!!!
>
> I am open to trying things and I tried installing 3.1 on RHELL4-U6 64
> bit but it has its keeps giving this error: "configure: error: pthread
> library required but cannot be found." I will work on that later.
>
> http_port 81 accel defaultsite=f99.net
> cache_peer 10.20.20.39 parent 88 0 no-query originserver login=PASS
> name=dtvAccel
> ##ACL#
> acl ALL dstdomain f99.net
> http_access allow ALL
> cache_peer_access dtvAccel allow All
> cache_peer_access dtvAccel deny all
> ##Headers##
> via on
> header_access Via allow all
> header_access Age deny all
> header_access X-Cache deny all
> ##Cache Config##
> collapsed_forwarding on
> minimum_expiry_time 120 seconds
> cache_mem 256 MB
> maximum_object_size 40960 KB
> maximum_object_size_in_memory 50 KB
> ipcache_size 40960
> # dc setting changed - orig first - new second
> # cache_dir aufs /usr/local/squid-2.7/var/cache 50000 16 256
> cache_dir ufs /usr/local/squid/var/cache 5000 16 256
> access_log /usr/local/squid/var/logs/access.log squid
> cache_store_log /usr/local/squid/var/logs/squid-store.log
> #refresh_pattern ^ftp: 1440 20% 10080
> #refresh_pattern ^gopher: 1440 0% 1440
> #refresh_pattern (/cgi-bin/|\?) 0 20% 720
> refresh_pattern -i \.jpg$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.jpeg$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.gif$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.png$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.swf$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.flv$ 10 90% 10 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.js$ 2 90% 2 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.css$ 2 90% 2 override-expire override-lastmod
> ignore-reload reload-into-ims
> refresh_pattern -i \.htm$ 10 90% 10
> refresh_pattern -i \.html$ 10 90% 10
> #icp_access allow all
> cache_mgr quinguin_at_yahoo.com
> visible_hostname diuqs
> logfile_rotate 12
> coredump_dir /usr/local/squid/var/cache
>
>
> Thank you very much,
>
> Quin
>
>
>
>
Received on Fri Apr 17 2009 - 15:27:20 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 17 2009 - 12:00:02 MDT