BackGroundFetch problem ?

Guillaume Quintard guillaume at varnish-software.com
Thu Oct 25 20:18:57 UTC 2018


Hi,

can you share your vcl?

-- 
Guillaume Quintard

On Thu, Oct 25, 2018 at 1:56 AM, zart zurt <zartzurter at gmail.com> wrote:

> Hi, I recently adopted some varnish servers and upgraded them to varnish
> 5.0.0 in debian-9 from the debian repositories.
>
> Most metrics are good except the backend_req value which is too high. The
> default_ttl and TTL values set in the VCL code are all 10d (or equivalent
> in seconds)
>
> When I checked the docs, I found out that in vcl_hit even if you return
> deliver, varnish starts a background fetch for that particular object if
> the object time has passed its TTL. In my case, BGF is always started.
>
> I checked the source code and in file varnisgd/cache/cache_req_fsm.c and
> function cnt_lookup around line 540, after VCL_hit_method called and it
> returned VCL_RET_DELIVER, a BGF is started without looking at the TTL value.
>
> How can I change this behaviour in VCL or through a parameter ? Or is this
> a bug ?
>
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20181025/c12decb0/attachment.html>


More information about the varnish-dev mailing list