Varnish - set backend if statuscode is 404

Jan-Frode Myklebust janfrode at tanso.net
Fri Nov 29 13:15:47 CET 2013


On Fri, Nov 29, 2013 at 09:06:15AM +0100, Per Buer wrote:
> >
> > @per, you suggested saint mode. Why? What would it do better than Tobias'
> > solution?
> 
> Saint mode works if you have two backends in the same director. Then it
> blacklists that object from that backend for a certain time. A restart
> would then direct the request to the other backend.
> 
> Tobias solution is to have two backends. The other one is only used when
> the first one fails.
> 

Ideally we want both. Our two hosts in the director are fully
functional, but one of them might not have received a given file yet. So
we want to try the other backend in the director, not mark it as faulty
when it gets the 404.

Do you see any way to maybe combine Tobias' solution with a director?


  -jf



More information about the varnish-misc mailing list