atom feed3 messages in ru.sysoev.nginxRe: Best-effort sticky sessions
FromSent OnAttachments
Grzegorz NosekFeb 22, 2010 7:57 am 
Piotr SikoraFeb 22, 2010 8:14 am 
Grzegorz NosekFeb 22, 2010 8:18 am 
Subject:Re: Best-effort sticky sessions
From:Grzegorz Nosek (grze@gmail.com)
Date:Feb 22, 2010 8:18:03 am
List:ru.sysoev.nginx

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 :)