# Loadbalancing

**URL:** <https://www.ruby-forum.com/t/loadbalancing/207172>\
**Category:** NGINX\
**Created:** [May 19, 2011, 9:53pm UTC](https://www.ruby-forum.com/t/loadbalancing/207172 "2011-05-19T21:53:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 19, 2011, 9:53pm UTC](https://www.ruby-forum.com/t/loadbalancing/207172/1 "2011-05-19T21:53:26Z")

</div>

Hi!  
It’s been a while now that I am struggling with nginx round-robin load  
balancer.  
The problem that I am experiencing is that when a server goes down, the  
entire upstream is not balanced anymore. The next server will get double  
traffic. And if that one goes down, the next one will get 3 times the  
traffice, and so on.

If I have something like this:

server localhost max\_fails=2 fail\_timeout=60s;

Does it mean that as soon as I get 2 fails within 60s it will mark the  
server as down without waiting the entire 60s? or is it going to wait  
60s to  
mark the server down?

If it waits 60s, how can I use round-robin and make sure that when a  
server  
goes down the rest will get traffic evenly?

Thanks,

Jonathan
