Send old content if backend is down

Klapproth, Martin Klapproth.M at sportresult.com
Tue Nov 30 08:59:49 CET 2010


Yes, I'm polling every 10 seconds. When the backend is down, the hosts
are marked as unhealthy in varnishlog.

-----Original Message-----
From: Wido den Hollander [mailto:wido at widodh.nl] 
Sent: Dienstag, 30. November 2010 08:44
To: Klapproth, Martin
Cc: varnish-misc at varnish-cache.org
Subject: RE: Send old content if backend is down

Hi,

Just to be sure, are you doing health checks on your backend?

Wido

On Tue, 2010-11-30 at 08:16 +0100, Klapproth, Martin wrote:
> Thank you. This option helped a lot. But varnish delivers still 503
> errors when the backend is completely down (no route to host,
> connection refused). Is there a way to handle such situations too?
> 
>  
> 
>                                    
> ______________________________________________________________________
> From:Per Buer [mailto:perbu at varnish-software.com] 
> Sent: Montag, 29. November 2010 15:10
> To: Klapproth, Martin
> Cc: varnish-misc at varnish-cache.org
> Subject: Re: Send old content if backend is down
> 
> 
>  
> 
> On Mon, Nov 29, 2010 at 3:01 PM, Klapproth, Martin
> <Klapproth.M at sportresult.com> wrote:
> 
>         Hello,
>         
>          
>         
>         I have a general question relating to varnish's vcl
>         configuration. I want the varnish server to send old cached
>         objects if the backend is down (marked unhealthy). I have
>         tested various grace configurations but nothing worked,
>         because grace takes only effect if the backend is slow, but
>         not if it's down. So is there a way (maybe in vcl_error)?
>         
>         
>  
> 
> 
> Yes. There is a way.
> 
> 
>  
> 
> 
>
http://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_se
rvers.html#saint-mode
> 
> 
> 
> -- 
> Per Buer,  Varnish Software
> Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer
> 
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc





More information about the varnish-misc mailing list