<div>Hi Drew, list.</div><div><br></div>On Tue, Mar 8, 2011 at 9:34 PM, Drew Smathers <span dir="ltr"><<a href="mailto:drew.smathers@gmail.com">drew.smathers@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Sorry to bump my own thread, but does anyone know of a way to set</div>
saintmode if a backend is down, vs. up and misbehaving (returning 500,<br>
etc)?<br>
<br>
Also, I added a backend probe and this indeed caused grace to kick in<br>
once the probe determined the backend as sick.I think the docs should<br>
be clarified if this isn't a bug (grace not working without probe):<br>
<a href="http://www.varnish-cache.org/docs/2.1/tutorial/handling_misbehaving_servers.html#tutorial-handling-misbehaving-servers" target="_blank">http://www.varnish-cache.org/docs/2.1/tutorial/handling_misbehaving_servers.html#tutorial-handling-misbehaving-servers</a></blockquote>
<div><br></div><div>Check out the trunk version of the docs. Committed some earlier today.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Finally it's somewhat disconcerting that in the interim between a<br>
cache expiry and before varnish determines a backend as down (sick) it<br>
will 503 - so this could affect many clients during that window.<br>
Ideally, I'd like to successfully service requests if there's an<br>
object in the cache - period - but I guess this isn't possible now<br>
with varnish?<br></blockquote><div><br></div><div>Actually it is. In the docs there is a somewhat dirty trick where set a marker in vcl_error, restart and pick up on the error and switch backend to one that is permanetly down. Grace kicks in and serves the stale content. Sometime post 3.0 there will be a refactoring of the whole vcl_error handling and we'll end up with something a bit more elegant.</div>
<div><br></div><div><br></div><div>-- </div></div>Per Buer, Varnish Software<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>Varnish makes websites fly!<br>Want to learn more about Varnish? <a href="http://www.varnish-software.com/whitepapers" target="_blank">http://www.varnish-software.com/whitepapers</a><br>
<br>