Re: [PATCH] : Prevent redispatcher from selecting the same server

From: Krzysztof Oledzki <ole#ans.pl>
Date: Tue, 5 Feb 2008 21:46:42 +0100 (CET)

On Mon, 4 Feb 2008, Krzysztof Oledzki wrote:

> From 7ece40b892a91f0d7fc673b6e5977766ab3e047b Mon Sep 17 00:00:00 2001
> From: Krzysztof Piotr Oledzki <ole#ans.pl>
> Date: Sun, 3 Feb 2008 23:44:44 +0100
> Subject: [MAJOR]: Prevent redispatcher from selecting the same server
>
> When haproxy decides that session needs to be redispatched it chose a server,
> but there is no guarantee for it to be a different than the current one. So,
> it often happens that selected server is exactly the same that it was
> previously and client ends up with a 503 error anyway, especially when one
> sever has much bigger weight than others.
>
> This patch fixes FWRR and RR algos. It also delays SN_DIRECT/SN_REDISP
> operations and http_flush_cookie_flags call so they are executed only when
> a connection was truly redispatched not only intended to.

Ping? Overlook or needs more time to be audited?

Best regards,

                                 Krzysztof Olędzki Received on 2008/02/05 21:46

This archive was generated by hypermail 2.2.0 : 2008/02/05 22:00 CET