Vcl command restart and multiple backends

Glen Kelly Glen.Kelly at
Sun Nov 14 23:20:13 CET 2010

Hi Per

Thanks for your advice. I had previously had saint mode set up as per the url.

After see another users vcl on the mailing list over the weekend I have changed my vcl to

                   #    if (beresp.status == 500) {
                   #        set beresp.saintmode = 30s;
                   #        restart;
                   #    }

                       if (beresp.status != 200 && beresp.status != 403 && beresp.status != 404 && beresp.status != 301 && beresp.status != 302) {
                           set beresp.saintmode = 30s;

Hopefully this will help.


P Do you need to print this? Consider the environment, prevent paper waste.
The information in this transmission may be confidential and/or protected by legal professional privilege, and is intended only for the person or persons to whom it is addressed. If you are not such a person, you are warned that any disclosure, copying or dissemination of the information is unauthorised. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission, or its return at our cost. No liability is accepted for any unauthorised use of the information contained in this transmission.

From: Per Buer [mailto:perbu at]
Sent: Friday, 12 November 2010 8:49 PM
To: Glen Kelly
Cc: varnish-misc at
Subject: Re: Vcl command restart and multiple backends

On Fri, Nov 12, 2010 at 12:52 AM, Glen Kelly <Glen.Kelly at<mailto:Glen.Kelly at>> wrote:
How does varnish handle request to multiple backend when the vcl "restart" command is run.

Does it use the same backend as the initial request or does it use another backend in accordance to the configured director.

You should look at "Saint Mode" -

When enabled it will blacklist failing objects from their backends.

Per Buer,  Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer

Varnish user? Take our survey:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tasfire_wakeup_small6b89.jpg
Type: image/jpeg
Size: 27459 bytes
Desc: tasfire_wakeup_small6b89.jpg
URL: <>

More information about the varnish-misc mailing list