What good reverse proxy caching can serve as outdated content if the main application becomes inaccessible?

I am looking for a reverse caching proxy (something like squid or varnish) with good support for serving outdated content in the event of a failure - in other words, if the application I'm connecting to leaves or starts serving the internal server I would like the cache continued to cater to the last good answer stored on the back. Essentially, I want the cache server to act as an extra layer of protection if something goes wrong.

Has anyone configured Squid or the like to do this? Do you know about any products that support this out of the box?

+3
source share
3 answers

Squid can do this in version 2.7. In particular, use the stale-if-error directive. More information can be found at:

http://www.mnot.net/blog/2007/12/12/stale

+7
source

It looks like Varnish cannot handle this requirement: http://varnish.projects.linpro.no/ticket/369

+3
source

, "". Squid 'refresh_stale_hit', , . , -. "", ( ... !), : , - .

+2

All Articles