# Tomcat load balancing

**URL:** <https://www.ruby-forum.com/t/tomcat-load-balancing/216691>\
**Category:** NGINX\
**Created:** [February 10, 2012, 8:51pm UTC](https://www.ruby-forum.com/t/tomcat-load-balancing/216691 "2012-02-10T20:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 10, 2012, 8:51pm UTC](https://www.ruby-forum.com/t/tomcat-load-balancing/216691/1 "2012-02-10T20:51:46Z")

</div>

Hello,

I didn’t find nginx module for “fair” Tomcat load balancing.  
My understanding, that by default nginx load balancing round robins  
through  
a list of upstream servers.  
Is any way for load balance to take into account also current cpu load  
of  
that app.server?

Thank you,

Ruslan

---

<div class="post-metadata">

**Author:** ![Ruslan\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@Ruslan\_D](https://www.ruby-forum.com/u/Ruslan_D)\
**Post date:** [February 10, 2012, 9:16pm UTC](https://www.ruby-forum.com/t/tomcat-load-balancing/216691/2 "2012-02-10T21:16:36Z")

</div>

On 10 Fev 2012 19h51 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> I didn’t find nginx module for “fair” Tomcat load balancing. My  
> understanding, that by default nginx load balancing round robins  
> through a list of upstream servers. Is any way for load balance to  
> take into account also current cpu load of that app.server?

Not directly related to CPU load, AFAIK the closest to that is:

[http://nginx.localdomain.pl/wiki/UpstreamFair](http://nginx.localdomain.pl/wiki/UpstreamFair)

— appa
