Re: [squid-users] Help with a tcp_miss/200 issue

From: James Ashton <james_at_gitflorida.com>
Date: Mon, 12 Mar 2012 10:13:27 -0400 (EDT)

Any thoughts guys?

This has me baffled. I am digging through list archives, but nothing relevant so far.
I figure it has to be a response header issue. I just don't see it.

Using Squid 3.1.8
Config is:

========================

http_port 80 accel vhost

# Production Servers
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query no-digest originserver login=PASS name=myAccellb round-robin
#
# user
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query no-digest originserver login=PASS name=puserlb round-robin
#
# Training
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query no-digest originserver login=PASS name=ktrain5 round-robin
#
# Ad Server
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query no-digest originserver login=PASS name=adserver1 round-robin
#
acl PURGE method PURGE
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
#acl all src 0.0.0.0/0.0.0.0
#

acl our_sites dstdomain origin.xxx.com
acl our_sites dstdomain streamorigin.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain images.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain media.xxx.com
acl our_sites dstdomain origin-media.xxx.com
acl our_sites dstdomain www.media.xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain portfolio.xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain xxxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain members.xxx.com
acl our_sites dstdomain skportfolio.xxx.com
acl our_sites dstdomain xxx.xxx.com
acl our_sites dstdomain mattk.xxx.com
acl our_sites dstdomain planet.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain forum.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain secure.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain xxx.com
acl our_sites dstdomain www.xxx.com
acl our_sites dstdomain secure.xxx.com
acl our_sites dstdomain reviews.xxx.com
acl our_sites dstdomain emails.xxx.com
acl our_sites dstdomain facebook.xxx.com

acl adserver dstdomain cache.ads.xxx.com

acl ktrain dstdomain xxx.com
acl ktrain dstdomain www.xxx.com
acl ktrain dstdomain secure.xxx.com

acl puser dstdomain www.xxx.com
acl puser dstdomain secure.xxx.com
acl puser dstdomain cache.xxx.com
acl puser dstdomain xxx.com

#
http_access allow our_sites
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
#http_access deny all
#
# Main Pool
cache_peer_access myAccellb allow our_sites
cache_peer_access myAccellb deny all
#
#
cache_peer_access ktrain5 allow ktrain
cache_peer_access ktrain5 deny all
#
#
cache_peer_access puserlb allow puser
cache_peer_access puserlb deny all
#
#
cache_peer_access adserver1 allow adserver
cache_peer_access adserver1 deny all
#
#
visible_hostname squid2.kelbymediagroup.com
#
refresh_pattern (phpmyadmin|process|register|login|contact|signup|admin|gateway|ajax|account|cart|checkout|members) 0 10% 0
refresh_pattern (blog|feed) 300 20% 4320
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 40320 75% 86400
refresh_pattern -i \.(iso|avi|wav|mp3|mpeg|swf|flv|x-flv)$ 1440 40% 40320
refresh_pattern -i \.mp4$ 1440 90% 43200
refresh_pattern -i \.(css|js)$ 300 40% 7200
refresh_pattern -i \.(html|htm)$ 300 40% 7200
refresh_pattern (/cgi-bin/|\?) 300 20% 4320
refresh_pattern . 300 40% 40320
#
negative_ttl 0 seconds
cache_effective_user squid
cache_mem 4000 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
maximum_object_size_in_memory 1 MB # 28 KB
maximum_object_size 1000 MB
cache_dir aufs /caches/cache1 30000 64 256
debug_options ALL,1
cache_store_log none
pipeline_prefetch on
#
#
shutdown_lifetime 1 second
httpd_suppress_version_string on
access_log /var/log/squid/squid-access.log squid

==================

Thank You
James

----- Original Message -----
From: "James Ashton" <admin_at_gitflorida.com>
To: squid-users_at_squid-cache.org
Sent: Friday, March 9, 2012 9:45:07 AM
Subject: [squid-users] Help with a tcp_miss/200 issue

Hello all,
 I am trying to improve caching/acceleration on a series of wordpress sites.
Almost all objects are being cached at this point other than the page HTML itself.
All I am getting there is TCP_MISS/200 log lines.

The request is a GET for the URL http://planetphotoshop.com

At the moment my response header is:

Cache-Control max-age=60
Cneonction close
Connection keep-alive
Content-Encoding gzip
Content-Length 15339
Content-Type text/html; charset=UTF-8
Date Fri, 09 Mar 2012 13:58:01 GMT
Server Apache/2.2.15 (CentOS)
Vary Accept-Encoding
Via 1.0 squid1.kelbymediagroup.com (squid)
X-Cache MISS from squid1.kelbymediagroup.com
X-Cache-Lookup MISS from squid1.kelbymediagroup.com:80
X-Pingback http://planetphotoshop.com/xmlrpc.php

I dont see anything preventing caching....

Any thoughts or ideas?

Thank you in advance for the help.

James
Received on Mon Mar 12 2012 - 14:13:01 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 13 2012 - 12:00:09 MDT