Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (32 sloc) 1.212 kb
84622e0 @grempe Create a simple README with installation and usage instructions.
grempe authored
1 Nginx Upstream Fair Proxy Load Balancer
2 --
3
4 Description:
5 --
6
7 The Nginx fair proxy balancer enhances the standard round-robin load balancer provided
8 with Nginx so that it will track busy back end servers (e.g. Thin, Ebb, Mongrel)
9 and balance the load to non-busy server processes.
10
11 Ezra Zygmuntowicz has a good writeup of the fair proxy load balancer and how to use it here:
12 http://brainspl.at/articles/2007/11/09/a-fair-proxy-balancer-for-nginx-and-mongrel
13
14
15 Installation:
16 --
17
18 You'll need to re-compile Nginx from source to include this module.
19 Modify your compile of Nginx by adding the following directive
20 (modified to suit your path of course):
21
22 ./configure --with-http_ssl_module --add-module=/absolute/path/to/nginx-upstream-fair
23 make
24 make install
25
26
27 Usage:
28 --
29
30 Change your Nginx config file's upstream block to include the 'fair' directive:
31
32 upstream mongrel {
33 fair;
34 server 127.0.0.1:5000;
35 server 127.0.0.1:5001;
36 server 127.0.0.1:5002;
37 }
38
39
40 Contributing:
41 --
42
43 Git source repositories:
44 http://github.com/gnosek/nginx-upstream-fair/tree/master
45 http://git.localdomain.pl/?p=nginx-upstream-fair.git;a=summary
46
47 Please feel free to fork the project at GitHub and submit pull requests or patches.
48
Something went wrong with that request. Please try again.