On Mon, Feb 22, 2010 at 05:15:15PM +0100, Piotr Sikora wrote:
Hi Grzegorz,
upstream up1 {
server sv1:9000;
server sv1:9000; # try again (and possibly again...)
server sv2:9000; # and finally fail over to the other server
}
Unless I've missed something, this should work for your use-case:
upstream up1 {
server sv1:9000 max_fails=3;
server sv2:9000 backup;
}
You're right but it just makes the config prettier and still broken :)
Have a look below, the real problems are the contents of $upstream_addr
and fastcgi_pass $variable behaviour.
Thanks anyway :)