Debugging
Checking cache hits/misses¶
- Use
varnishlog -g request -q 'ReqURL ~ "^/some/path/"'to filter - Check Requests for
VCL_callwithMISS,PASSorHIT - Normally, an unpaged cache will be either be
MISSed orPASSed, the next request shouldHIT - If Varnish is clustered, the request may be
PASSed to the responsible instance, so control all instances
Useful Prometheus queries¶
Probably only applicable for Varnish Plus
varnish_msestore_g_alloc_bytes: In-memory cache sizerate(varnish_mse_n_lru_nuked[5m]): Eviction rate for cached objects in MSE -> Too many (case-by-case defintion) may hint to the MSE cache being too small
Last update : June 6, 2024
Created : March 23, 2023
Created : March 23, 2023