public
Description: The fair load balancer module for nginx
Homepage: http://git.localdomain.pl
Clone URL: git://github.com/gnosek/nginx-upstream-fair.git
Search Repo:
name age message
folder .gdbinit Tue Jun 17 23:02:50 -0700 2008 Update gdb macros [gnosek]
folder README Mon Mar 24 16:22:10 -0700 2008 Create a simple README with installation and us... [grempe]
folder config Sat Mar 22 08:46:08 -0700 2008 Add config file for compiling upstream_fair as ... [gnosek]
folder ngx_http_upstream_fair_module.c Thu Jun 26 12:52:25 -0700 2008 Fix compile error on some platforms [gnosek]
README
Nginx Upstream Fair Proxy Load Balancer
--

Description:
--

The Nginx fair proxy balancer enhances the standard round-robin load balancer provided
with Nginx so that it will track busy back end servers (e.g. Thin, Ebb, Mongrel)
and balance the load to non-busy server processes.

Ezra Zygmuntowicz has a good writeup of the fair proxy load balancer and how to use it here:
http://brainspl.at/articles/2007/11/09/a-fair-proxy-balancer-for-nginx-and-mongrel


Installation:
--

You'll need to re-compile Nginx from source to include this module.
Modify your compile of Nginx by adding the following directive
(modified to suit your path of course):

./configure --with-http_ssl_module --add-module=/absolute/path/to/nginx-upstream-fair
make
make install


Usage:
--

Change your Nginx config file's upstream block to include the 'fair' directive:

upstream mongrel {
    fair;
    server 127.0.0.1:5000;
    server 127.0.0.1:5001;
    server 127.0.0.1:5002;
  }


Contributing:
--

Git source repositories:
http://github.com/gnosek/nginx-upstream-fair/tree/master
http://git.localdomain.pl/?p=nginx-upstream-fair.git;a=summary

Please feel free to fork the project at GitHub and submit pull requests or patches.