I don't think it would be very hard to do with the vcl. If the beresp !=
200 you would set a fail header and then retry it. Then just check for that
header to direct to a "fail whale" cluster that serves a simple error page.

I'm sure someone can chime in with a better solution.


On Fri, Nov 15, 2013 at 12:52 PM, <[email protected]> wrote:

> In some load balancers (haproxy, for example) you can create a backend
> that only gets hit if all the other backends are down. A common enough
> setup is to have a local apache serve a polite "oops" page on an alternate
> port on the loopback. Is there some clever way to do this with Varnish?
> I've read to docs and googled but can't find anything like this. If this is
> possible, a doc to the right link would be awesome.
>
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



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

Reply via email to