Need help with nginx-upstream-fair?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

429 Stars 138 Forks 67 Commits 23 Opened issues


The fair load balancer module for nginx

Services available


Need anything else?

Contributors list

Nginx Upstream Fair Proxy Load Balancer


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.

Further information can be found on

Ezra Zygmuntowicz has a good writeup of the fair proxy load balancer and how to use it here:


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-httpsslmodule --add-module=/absolute/path/to/nginx-upstream-fair make make install


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

upstream mongrel { fair; server; server; server; }

If you encounter any issues, please report them using the bugtracker at


Git source repositories:;a=summary

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.