Varnish Retry is not happening for some user requests (/GET)

Uday Kumar uday.polu at indiamart.com
Thu Oct 10 10:29:30 UTC 2024


Hello All,

We have configured varnish in such a way that if one of the backend
returns *404
code*, varnish retries the request on another healthy backend.
Varnish version: varnish-6.0.11

*Sample Configuration (default.vcl):*
sub *vcl_backend_response *{
if (beresp.status == 404 {
            return(retry);
        }
}

But in some cases, varnish retry is not happening as expected.

Upon analysis we have found the only difference in requests is *payload*



*Examples:Request Pattern-1:*
/GET
Request URL
HTTP Protocol
Request Headers

*Request-Pattern-2:*
/GET
Request URL
HTTP Protocol
Request Headers
*payload*

Please help us understand if there are any scenarios where varnish retries
won't happen.

*Thanks & Regards,*
*Uday Kumar*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20241010/767c6a26/attachment.html>


More information about the varnish-misc mailing list