Fair Proxy Balancer

Grzegorz Nosek grzegorz.nosek at gmail.com
Thu Jan 31 19:45:57 MSK 2008


On Thu, Jan 31, 2008 at 09:31:29AM -0400, David Pratt wrote:
> Hi Igor. Since the fair proxy balancer appears to be doing the right 
> thing, is there a stopper in bringing the necessary changes into the 
> trunk (without patching) so it would only require the module? Many thanks.

Hi,

The fair proxy balancer doesn't really need any patches in nginx core. I
have published it as a complete source repository for my own convenience
but One Day(tm) I'll publish it as a standalone module.

The code is self-contained in src/http/modules/ngx_http_upstream_fair.c
so if you wire it into the nginx build process any other way, it should
work fine.

There are a few functions which are generic enough to warrant inclusion
in nginx core (and converting nginx code to use it) but by no means is
it neccessary for the module to function.

One known issue (again, waiting for the One Day) is that the round-robin
part doesn't work too well. E.g. if your load is very low, all requests
will go to the first backend. Anyway, I'll keep the current behaviour as
an option as it may be useful in dimensioning your backend cluster (i.e.
if the Nth backend has serviced no requests, N-1 should be enough).

Best regards,
 Grzegorz Nosek






More information about the nginx mailing list