# Proxy module - upstream server recovery from inoperative mode

**URL:** <https://www.ruby-forum.com/t/proxy-module-upstream-server-recovery-from-inoperative-mode/207092>\
**Category:** NGINX\
**Created:** [May 18, 2011, 7:14am UTC](https://www.ruby-forum.com/t/proxy-module-upstream-server-recovery-from-inoperative-mode/207092 "2011-05-18T07:14:01Z")\
**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 18, 2011, 7:14am UTC](https://www.ruby-forum.com/t/proxy-module-upstream-server-recovery-from-inoperative-mode/207092/1 "2011-05-18T07:14:01Z")

</div>

Hi All,

We are trying to use NGINX as a load balancing solution for our  
production servers. Our infrastructure contains few application server  
using SOAP XML over HTTP. NGNIX suppose to balance between servers.  
Please see config:

user nginx;  
worker\_processes 10;  
error\_log /var/log/nginx/error.log;  
pid /var/run/nginx.pid;

events {  
worker\_connections 2048;  
}

http {  
upstream CS {  
server 70.70.0.31:80 max\_fails=1 fail\_timeout=1s;  
server 70.70.0.41:80 max\_fails=1 fail\_timeout=1s;  
}  
server {  
listen 54321;  
location / {  
proxy\_pass [http://CS](http://CS);  
proxy\_read\_timeout 2s;  
# proxy\_connect\_timeout 200ms;  
}  
}  
}

NGINX does the work great until some of backend server fails to answer  
to NGINX in time and it send request to other server. Until this point  
everything is great and working. Now failed server should recover from  
inoperative mode to operetive mode after 1 second as I’ve defined  
fail\_timeout to 1 second (Here might be my mistake because it may be  
recovers but right after it fails again) and it doesn’t. I’m getting to  
the point where NGINX says that there is no operative upstream servers  
available because in some point load to the servers is so high that both  
of servers unable to answer in time.  
We are working on solving our servivce issue. However I think it is  
cruicial for load balancer be able moving failed upstream server to  
operative mode. May be I’m doing something wrong. Which log level will  
show the recovery?

I will appreciate for any help!

Regards,  
Seva Feldman

Posted at Nginx Forum:

> **[Proxy module - upstream server recovery from inoperative mode](https://forum.nginx.org/read.php?2,198952,198952#msg-198952)**
>
> Hi All, We are trying to use NGINX as a load balancing solution for our production servers. Our infrastructure contains few application server using SOAP XML over HTTP. NGNIX suppose to balance between servers. Please see config: user nginx; worker\_p
