Measure backend fetch time

Torsten Luettgert st-varnish at luettgert.de
Mon Feb 3 14:58:18 UTC 2020


Hello,

I was looking for a way to measure "how much backend time is saved" by
a cached object during its lifetime, in VCL. Simple approach:

In vcl_hit or vcl_deliver, look at

  saved_time = obj.hits * fetch_time

Is there a way to get the time used for fetching from the backend?

Thanks and regards,
Torsten




More information about the varnish-misc mailing list