Hit ratio dropped significantly after recent upgrades

Justin Lloyd justinl at arena.net
Tue Dec 13 16:01:59 CET 2016


Actually, unless I'm missing something, that line would only matter for requests with Authorization headers, which none of our responses have since we don’t use http authentication.

-----Original Message-----
From: Justin Lloyd 
Sent: Tuesday, December 13, 2016 6:47 AM
To: 'Dridi Boukelmoune' <dridi at varni.sh>
Cc: Guillaume Quintard <guillaume at varnish-software.com>; varnish-misc at varnish-cache.org
Subject: RE: Hit ratio dropped significantly after recent upgrades

Hmm, interesting. I've never made the connection to that line, which is part of the recommended Varnish configuration for MediaWiki[1], but it's not been a problem in the past as far as I know. I'll definitely investigate this more deeply. Thank you!

[1] https://www.mediawiki.org/wiki/Manual:Varnish_caching


-----Original Message-----
From: Dridi Boukelmoune [mailto:dridi at varni.sh]
Sent: Tuesday, December 13, 2016 6:40 AM
To: Justin Lloyd <justinl at arena.net>
Cc: Guillaume Quintard <guillaume at varnish-software.com>; varnish-misc at varnish-cache.org
Subject: Re: Hit ratio dropped significantly after recent upgrades

On Tue, Dec 13, 2016 at 3:23 PM, Justin Lloyd <justinl at arena.net> wrote:
> Here’s a typical varnishlog miss for a thumbnail image, appropriately 
> sanitized. I can provide more if it helps
>
> https://gist.github.com/Calygos/ca7906da005569046a7031d1fcaa6372

After a quick look at the log, I was able to find which line [1] of VCL is responsible for this behavior. Your backend doesn't say that the resource is public, so you may have to configure mediawiki to mark thumbnails as public. This is not something I can help with.

Cheers

[1] https://gist.github.com/Calygos/105957a997ea3bde6b8257a1f34bbd20#file-wiki-vcl-L144


More information about the varnish-misc mailing list