Hi Drew, list. On Tue, Mar 8, 2011 at 9:34 PM, Drew Smathers <[email protected]>wrote:
> Sorry to bump my own thread, but does anyone know of a way to set > saintmode if a backend is down, vs. up and misbehaving (returning 500, > etc)? > > Also, I added a backend probe and this indeed caused grace to kick in > once the probe determined the backend as sick.I think the docs should > be clarified if this isn't a bug (grace not working without probe): > > http://www.varnish-cache.org/docs/2.1/tutorial/handling_misbehaving_servers.html#tutorial-handling-misbehaving-servers Check out the trunk version of the docs. Committed some earlier today. > Finally it's somewhat disconcerting that in the interim between a > cache expiry and before varnish determines a backend as down (sick) it > will 503 - so this could affect many clients during that window. > Ideally, I'd like to successfully service requests if there's an > object in the cache - period - but I guess this isn't possible now > with varnish? > 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. -- Per Buer, Varnish Software Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer Varnish makes websites fly! Want to learn more about Varnish? http://www.varnish-software.com/whitepapers
_______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
