Vcl command restart and multiple backends

Glen Kelly Glen.Kelly at fire.tas.gov.au
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;
                           restart;
                       }

Hopefully this will help.

Glen

[cid:tasfire_wakeup_small6b89.jpg]<http://www.fire.tas.gov.au/Show?pageId=colDayLightSavings>
P Do you need to print this? Consider the environment, prevent paper waste.
CONFIDENTIALITY NOTICE AND DISCLAIMER
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 varnish-software.com]
Sent: Friday, 12 November 2010 8:49 PM
To: Glen Kelly
Cc: varnish-misc at varnish-cache.org
Subject: Re: Vcl command restart and multiple backends

On Fri, Nov 12, 2010 at 12:52 AM, Glen Kelly <Glen.Kelly at fire.tas.gov.au<mailto:Glen.Kelly at fire.tas.gov.au>> 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" - http://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html#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: http://www.varnish-cache.org/user-survey-november-2010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.varnish-cache.org/pipermail/varnish-misc/attachments/20101115/be72eae0/attachment-0001.html>
-------------- 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: <http://lists.varnish-cache.org/pipermail/varnish-misc/attachments/20101115/be72eae0/attachment-0001.jpg>


More information about the varnish-misc mailing list