How to... - tiered failover?

From “tiered failover?” at

I have a setup like this:

nginx -> http cache -> site || remote site

I want nginx to ALWAYS proxy to the cache, but if and only if the cache
is down to skip it and proxy directly to my site. If and only if the
cache and the site are down proxy to a remote site with limited

I dont see how to do this with nginx. There is round robin and weighted
round robin but this isn’t what I need. I need tiered failover.

Does anyone know how to configure this?

Posted by ohenry

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs