Hello everyone,

do you know if there's a way to make std.healthy(req.backend_hint) work with saint mode ? Actually it returns true even if the backend is blacklisted by saint mode for a particular request.
So i can't make a difference in vcl_hit :

if (std.healthy(req.backend_hint)) {
    if (obj.ttl + obj.grace > 0s) {
    #stale-while-revalidate
         return (deliver);
    }
}
else {
    if (obj.ttl + obj.grace + obj.keep > 0s) {
    #stale-if-error
        return (deliver);
    }
}

to simulate stale-while-revalidate and stale-if-error.
(works well if the backend is really down)
Thanks.


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to