Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE020107A0 for ; Sat, 19 Apr 2014 20:27:21 +0000 (UTC) Received: (qmail 42226 invoked by uid 500); 19 Apr 2014 20:27:19 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 42094 invoked by uid 500); 19 Apr 2014 20:27:18 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 42086 invoked by uid 99); 19 Apr 2014 20:27:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Apr 2014 20:27:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of covener@gmail.com designates 209.85.128.172 as permitted sender) Received: from [209.85.128.172] (HELO mail-ve0-f172.google.com) (209.85.128.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Apr 2014 20:27:14 +0000 Received: by mail-ve0-f172.google.com with SMTP id jx11so5319119veb.31 for ; Sat, 19 Apr 2014 13:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=BwJSLVUflzCxcaBb84lp3X5hxHTRn1n0UzwF9ccO27g=; b=nH7T0DNSuQVadXltFKJQeeUSvydSVa5OXtpg4cSGGJ9/wVwB61LarrHqsieWB8d3Gg nIlzQm/VqyF6+OKGp4YyC8YLDPpzE698HcWWieQiGWj80sYf4JQG8QISe3CiMk53mbZU ZVRdh/EnMrpWLUCo5pOrc24oTHqHrDoddQLZBppzcNLNpYaRc4yEg63PF7th/2V+WH3g Rfz+H4LEfgz+tjo7GLdT89M3MLirH5FY1GFEOqRDnKj+dX+Dnk14WjbcPhvDSxFm+rT9 C0abpuxy7TiMwPV2UqZvhtmKpTFTiPPCZJUw8U0qJ4JkjXc1XkWUnp9K9Nz0m3egRy1h st2g== MIME-Version: 1.0 X-Received: by 10.58.154.10 with SMTP id vk10mr21610350veb.18.1397939213389; Sat, 19 Apr 2014 13:26:53 -0700 (PDT) Received: by 10.58.8.197 with HTTP; Sat, 19 Apr 2014 13:26:53 -0700 (PDT) In-Reply-To: <821A0034-96EF-4865-BD77-D2721CEB12D5@riggs.me> References: <821A0034-96EF-4865-BD77-D2721CEB12D5@riggs.me> Date: Sat, 19 Apr 2014 16:26:53 -0400 Message-ID: Subject: Re: mod_cache thundering herd bug From: Eric Covener To: Apache HTTP Server Development List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Apr 8, 2014 at 4:11 PM, Jim Riggs wrote: > https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50317 > > While we are at ApacheCon, I would love to address this nasty bug with so= meone familiar with 2.2's mod_cache. Our sites were brought down a few time= s last year before we finally tracked it down to being this particular bug.= I am using a crude backport of the 2.3 patch (r1023398) in 2.2. It works, = but I don't know if it is correct. > > Can someone look at this one with me? We really need to get this fixed in= 2.2, because there is NO thundering herd protection at all as things stand= right now. > Graham -- related subject brought up either in Denver or in the bug. It seems that when we serve a stale file while the cache is locked, the age headers are small instead of large. I got totally lost trying to track down the issue, maybe it makes sense to you? It's almost as if they time of the revalidation is somehow updated early and the delta in the stale cache hits is based off of that. --=20 Eric Covener covener@gmail.com