Welcome! Log In Create A New Profile

Advanced

Re: backup servers/ proxy_next_upstream questions

September 06, 2012 05:25PM
I'm also interested in the explanation, as I have a bunch of servers with:

upstream backend{
server localhost:8080 fail_timeout=1s;
server localhost:80 backup;
}

And I eventually see requests being honored by localhost:80 backup server.

Both servers, the live application proxyed server and the nginx based static fallback are on the same machine, and whenever localhost:8080 serves a request that has a modified content since the last checksum (ETag), it passivates the content on disk for the static fallback server to serve in case of proxy_next_upstream.

So what I'm wondering, along with those questions made by Harish, is:
1) what are the consequences of having fail_timeout=1s? Does that mean that if I have maxfails in one second then the backup server will serve the very request who failed, or the next one?
2) how long nginx would be serving static content until the upstream come back to whatever normality is restored?
3) how is the best way to have a backup server definition at the upstream to serve static content in the event of proxy_next_upstream?

Thanks
Subject Author Posted

backup servers/ proxy_next_upstream questions

Harish Sundararaj September 06, 2012 02:24PM

Re: backup servers/ proxy_next_upstream questions

djeps September 06, 2012 05:25PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready