Return-Path: Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: (qmail 24929 invoked from network); 12 Jul 2010 12:57:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jul 2010 12:57:20 -0000 Received: (qmail 12416 invoked by uid 500); 12 Jul 2010 12:57:19 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 12299 invoked by uid 500); 12 Jul 2010 12:57:17 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 12291 invoked by uid 99); 12 Jul 2010 12:57:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 12:57:17 +0000 X-ASF-Spam-Status: No, hits=4.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_PSBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of szymon_francuzik@op.pl designates 213.180.142.137 as permitted sender) Received: from [213.180.142.137] (HELO smtpo06.poczta.onet.pl) (213.180.142.137) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 12:57:07 +0000 Received: from eskulap-197.cs.put.poznan.pl ([150.254.24.197]:37990 "EHLO [192.168.0.235]" rhost-flags-OK-OK-OK-FAIL) by ps2.m5r2.onet with ESMTPA id S134220557Ab0GLM4qutcPw (ORCPT ); Mon, 12 Jul 2010 14:56:46 +0200 Message-ID: <4C3B110E.3030008@op.pl> Date: Mon, 12 Jul 2010 14:56:46 +0200 From: Szymon Francuzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100306 Iceowl/1.0b1 Icedove/3.0.3 MIME-Version: 1.0 To: users@trafficserver.apache.org Subject: Re: Cache problems References: <4C36E8AA.5050309@cs.put.poznan.pl> <4C370889.6030201@cs.put.poznan.pl> <4C373273.2060801@cs.put.poznan.pl> <4C373433.7030306@apache.org> In-Reply-To: <4C373433.7030306@apache.org> Content-Type: multipart/alternative; boundary="------------000209010507080801020706" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------000209010507080801020706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09.07.2010 16:37, Leif Hedstrom wrote: >> On 07/09/2010 03:47 PM, Jason wrote: >> >> Can you try testing a static page (html) and limiting your connects >> to 1-10 so you can debug at least. >> I tried testing a static page and it's worked ok (page is cached after first request). > I addition to what Jason said, a few things to try: > > 1) Make sure traffic_cop isn't killing traffic_server. I had this > happen to me once, and it shows up as if the cache is blown away > (because the directory is never flushed to disk). This could happen if > the health check from traffic_cop to traffic_server fails. This is > easy to see, for example, just check the "start" time of > traffic_server vs traffic_manager (they should usually be the same). traffic_server works all the time. traffic_server, traffic_cop and traffic_manager have the same start time. > 2) I'd really like to see the complete header from the Origin server, > to make sure there is nothing in the response that prevents TS from > caching the response. Header from the origin server (for dynamic page): HTTP/1.1 200 OK Date: Mon, 12 Jul 2010 12:20:04 GMT Server: Apache/2.2.15 (Unix) Content-Type: text/html; charset=utf-8 Header from the origin server for static page (cached after first request): HTTP/1.1 200 OK Date: Mon, 12 Jul 2010 12:20:08 GMT Server: Apache/2.2.15 (Unix) Last-Modified: Mon, 12 Jul 2010 09:58:50 GMT ETag: "48a4e2-2aabd-48b2dcca50a80" Accept-Ranges: bytes Content-Length: 174781 Content-Type: text/plain TS doesn't use ETag (even if I replace static page, ts responses with cached version). It looks like 'Last-Modified' is crucial. We set attributes proxy.config.http.cache.required_headers INT 0 and proxy.config.http.cache.when_to_revalidate INT 3 (never stale), so we didn't expect this header to be required by TS. --------------000209010507080801020706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 09.07.2010 16:37, Leif Hedstrom wrote:
On 07/09/2010 03:47 PM, Jason wrote:

 Can you try testing a static page (html) and limiting your connects
 to 1-10 so you can debug at least.

I tried testing a static page and it's worked ok (page is cached after first request).

I addition to what Jason said, a few things to try:

1) Make sure traffic_cop isn't killing traffic_server.  I had this happen to me once, and it shows up as if the cache is blown away (because the directory is never flushed to disk). This could happen if the health check from traffic_cop to traffic_server fails. This is easy to see, for example, just check the "start" time of traffic_server vs traffic_manager (they should usually be the same).
traffic_server works all the time. traffic_server, traffic_cop and traffic_manager have the same start time.
2) I'd really like to see the complete header from the Origin server, to make sure there is nothing in the response that prevents TS from caching the response.

Header from the origin server (for dynamic page):

HTTP/1.1 200 OK
Date: Mon, 12 Jul 2010 12:20:04 GMT
Server: Apache/2.2.15 (Unix)
Content-Type: text/html; charset=utf-8

Header from  the origin server for static page (cached after first request):

HTTP/1.1 200 OK
Date: Mon, 12 Jul 2010 12:20:08 GMT
Server: Apache/2.2.15 (Unix)
Last-Modified: Mon, 12 Jul 2010 09:58:50 GMT
ETag: "48a4e2-2aabd-48b2dcca50a80"
Accept-Ranges: bytes
Content-Length: 174781
Content-Type: text/plain

TS doesn't use ETag (even if I replace static page, ts responses with cached version). It looks like 'Last-Modified' is crucial. We set attributes proxy.config.http.cache.required_headers INT 0 and proxy.config.http.cache.when_to_revalidate INT 3 (never stale), so we didn't expect this header to be required by TS.
--------------000209010507080801020706--