Load Balancing Algorithm

Maxim Dounin mdounin at mdounin.ru
Mon Oct 15 10:02:22 UTC 2012


On Mon, Oct 15, 2012 at 09:59:06AM +0530, Aparna Bhat wrote:

> Is it possible for me to change the load balancing algorithm used in Nginx.??

Yes.  As of vanilla nginx, the following balancing algorithms are 

- round-robin (default)
- least conn, see http://nginx.org/r/least_conn
- ip hash, see http://nginx.org/r/ip_hash

It is also possible to use 3rd party balancing modules (there are 
number of them available, see http://wiki.nginx.org/3rdPartyModules).
And obviously you may write your own.

Maxim Dounin

More information about the nginx mailing list