Upstream (fair) with dead servers

Kamil Gorlo kgorlo at gmail.com
Sat Jul 11 02:00:32 MSD 2009


On Fri, Jul 10, 2009 at 4:34 AM, Weibin Yao<nbubingo at gmail.com> wrote:
> Kamil Gorlo at 2009-7-9 22:47 wrote:
>>
>> Hi,
>>
>> I have (possibly quite rare) situation where I have one upstream with
>> two servers and I know that in any particular moment only one of those
>> servers is running:
>>
>> upstream blah {
>>    server server1; // when working, server2 is dead
>>    server server2; // when working, server1 is dead
>> }
>>
>> So, what I need is that Nginx will choose working backend (in this
>> upstream), remembers it and choose it for every request till some
>> failure on this server occurs. Then it tries other server in upstream,
>> till it finds some working - and situation repeats. Is this possible?
>>
>> Maybe upstream_fair module with option no_rr will work for me (I am not
>> sure)?
>>
>> Cheers,
>>
>
> I think you should try the keepalived.

What do you mean?

Cheers,
Kamil





More information about the nginx mailing list