Discussion:
Strange behavior on varnish 5
Guillaume Quintard
2018-05-17 15:45:56 UTC
Permalink
Hello,

You are discovering grace :-)

https://varnish-cache.org/docs/trunk/users-guide/vcl-grace.html

"set beresp.grace = 0s;" should do it.
--
Guillaume Quintard
Hi All,
- if we set ttl = 600s , we are seeing HIT is serving the content over 10s
. Origin is not changing the content and we are NOT sending
if_modified_since header.
- VCL_return lookup
- Hit 527698198 *-0.990171<<<< why it is a hit but ttl is
negative value * 0.000000 0.000000
- VCL_call HIT
- VCL_Log hit index: 305
- VCL_Log x-cache-hit:Buffer
- VCL_Log rsp-source:Buffer
- VCL_Log x-ingest:false
- VCL_return deliver
- Link bereq 288421900 bgfetch
- Timestamp Fetch: 1526569247.693528 0.000478 0.000478
- RespProtocol HTTP/1.1
- RespStatus 403
- How to disable background fetch ?.
Thanks,
Prem
_______________________________________________
varnish-misc mailing list
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Dridi Boukelmoune
2018-05-18 06:54:31 UTC
Permalink
Hit 527698198 -0.990171<<<< why it is a hit but ttl is negative
value 0.000000 << Grace is 0 0.000000
- VCL_call HIT
We set to zero.
Are you actively setting it to zero? The default is 10s.

This could be related to the recent changes in TTL calculation:

https://github.com/varnishcache/varnish-cache/pull/2555

Dridi

Continue reading on narkive:
Loading...