# Fair load balancer module: upstream\_fair

**URL:** <https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491>\
**Category:** NGINX\
**Created:** [March 21, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491 "2010-03-21T15:44:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamstef](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6a8cbe/32.png) [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Post date:** [March 21, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491/1 "2010-03-21T15:44:50Z")

</div>

Hi,

Im thinking in building for nginx the upstream\_fair module.  
I just want to make sure I got the instructions right.

1. Download all needed bits for nginx, including the server source code
2. Buuild the NGINX server aloing with the upstream\_fair module by  
adding  
the following: --add-module=src/upstream\_fair

3, make && make install

There were some mentions about a patch for the std balance module:  
[http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule](http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule) - what is this  
patch about and do I need to patch manually the nginx source code for  
upstream\_fair ?

Im planning in using Nginx 0.7.65 on Solaris 10 x86/sparc.

thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![iamstef](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6a8cbe/32.png) [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Post date:** [March 21, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491/2 "2010-03-21T19:48:56Z")

</div>

> No, you don’t need to patch Nginx itself to use upstream\_fair. The  
> instructions you posted should be enough. The patch you mentioned is for  
> the upstream\_hash module only.

cheers. worked fine, I mean compiled fine.  
All configuration goes under nginx.conf ?

stefan

---

<div class="post-metadata">

**Author:** ![iamstef](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6a8cbe/32.png) [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Post date:** [March 21, 2010, 8:52pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491/3 "2010-03-21T20:52:44Z")

</div>

On nie, mar 21, 2010 at 08:48:15 +0200, Stefan P. wrote:

> cheers. worked fine, I mean compiled fine.  
> All configuration goes under nginx.conf ?

Yup. Or a file included from there.

Best regards,  
Grzegorz N.

---

<div class="post-metadata">

**Author:** ![iamstef](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6a8cbe/32.png) [@iamstef](https://www.ruby-forum.com/u/iamstef)\
**Post date:** [March 21, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/fair-load-balancer-module-upstream-fair/185491/4 "2010-03-21T16:49:48Z")

</div>

On nie, mar 21, 2010 at 04:44:11 +0200, Stefan P. wrote:

> There were some mentions about a patch for the std balance module:  
> [http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule](http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule) - what is this  
> patch about and do I need to patch manually the nginx source code for  
> upstream\_fair ?
> 
> Im planning in using Nginx 0.7.65 on Solaris 10 x86/sparc.

No, you don’t need to patch Nginx itself to use upstream\_fair. The  
instructions you posted should be enough. The patch you mentioned is for  
the upstream\_hash module only.

Best regards,  
Grzegorz N.
