Trying multiple backends for a resource

Oddur Snær Magnússon oddur at ccpgames.com
Thu Aug 2 13:55:47 CEST 2012


Seems like the fallback director is what I want, if I can get it to try to continue trying on 404.
I could possibly map 404 to 503(temp unavailable)

https://www.varnish-cache.org/docs/trunk/reference/vcl.html#the-fallback-director

From: rzuidhof at gmail.com [mailto:rzuidhof at gmail.com] On Behalf Of Richard Zuidhof
Sent: Wednesday, August 01, 2012 7:26 PM
To: Oddur Snær Magnússon
Subject: Re: Trying multiple backends for a resource


No problem at all.
Op 1 aug. 2012 21:06 schreef "Oddur Snær Magnússon" <oddur at ccpgames.com<mailto:oddur at ccpgames.com>> het volgende:
I´ve got multiple backends which each might have the file I´m requesting.

Would it be possible to configure varnish in such a way that is tries multiple backends and uses the first one it finds with a 200 response ?

Best regards,

Oddur Snær Magnússon
Senior Programmer | Reykjavík | Iceland

[Description: Description: Description: Description: cid:DB5C0F43-387B-4CF8-BC6F-B17512BB8251 at ccp.ad.local]

:wq


_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120802/aa653488/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10333 bytes
Desc: image001.png
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120802/aa653488/attachment-0001.png>


More information about the varnish-misc mailing list