new Varnish4 install -- seeing MISSes instead of HITs ? vcl & log included

Jorge jnerin at gmail.com
Fri Dec 12 13:00:31 CET 2014


Uhm, doing the change so your vcl_hit looks like:
sub vcl_hit  { return(deliver); }

Works for me (tm).

Note that in your first email your vcl_hit unconditionally returned fetch:
sub vcl_hit  { return(fetch); }

P.D. I was the one doing the last update to this github template, and the
idea of returning fetch in vcl_hit was exactly for grace support.

On Thu, Dec 11, 2014 at 11:48 PM, <grantksupport at operamail.com> wrote:
>
>
>
> On Thu, Dec 11, 2014, at 02:36 PM, Dridi Boukelmoune wrote:
> > My guess is both a mistake from you and a bug in varnish.
> >
> > In vcl_hit you should "return(deliver)" instead of "return(fetch)".
>
> i'm working with shameless cribbing from supsected-to-work-well vcl's
>
> this one
>
>
> https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl
>
> does include the
>
>         vcl_hit() {
>                 ...
> -               return (deliver)
> +               return (fetch)
>         }
>
> Making JUST that change in MY, current vcl still makes no difference; I
> still see the MISS.
>
> BUT, switching completely to that vcl DOES do the trick -- I see HIT on
> the image.
>
> Now, a matter of piecemeal substitution to find & understand the actual
> problem.
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>


-- 
Jorge Nerín
<jnerin at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141212/aea5a4d4/attachment.html>


More information about the varnish-misc mailing list