<div dir="ltr">Hi,<div><br></div><div>I am trying to do failover as per below configuration :-</div><div><br></div><div><div>upstream backend {</div><div>                hash $key2 consistent;</div><div>                server <a href="http://10.0.0.22:8080">10.0.0.22:8080</a>;</div>
<div>                server <a href="http://10.0.0.23:8080">10.0.0.23:8080</a>;</div><div>                server <a href="http://10.0.0.24:8080">10.0.0.24:8080</a>;</div><div>                server <a href="http://10.0.0.25:8080">10.0.0.25:8080</a>;</div>
<div>                server <a href="http://10.0.0.26:8080">10.0.0.26:8080</a>;</div><div>        }</div><div>        upstream backend_2 {</div><div>                server <a href="http://10.0.0.22:8080">10.0.0.22:8080</a>;</div>
<div>                server <a href="http://10.0.0.23:8080">10.0.0.23:8080</a>;</div><div>                server <a href="http://10.0.0.24:8080">10.0.0.24:8080</a>;</div><div>                server <a href="http://10.0.0.25:8080">10.0.0.25:8080</a>;</div>
<div>                server <a href="http://10.0.0.26:8080">10.0.0.26:8080</a>;</div><div>        }</div><div><br></div><div>            server {</div><div>                listen 90 default_server;</div><div><br></div><div>
                location = / {</div><div>                   proxy_pass <a href="http://backend_2">http://backend_2</a>;</div><div>                   proxy_next_upstream error timeout http_404;</div><div>                }</div>
<div>                location / {</div><div>                   proxy_pass <a href="http://backend">http://backend</a>;</div><div>                   proxy_next_upstream error timeout http_404;</div><div>                }</div>
<div><br></div><div>        }</div></div><div><br></div><div>In error logs i received following message :-</div><div><br></div><div><div>2014/08/10 09:52:16 [info] 514#0: *184 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 14.102.112.84, server: , request: "GET /mybucket4/ HTTP/1.1", upstream: "<a href="http://10.0.0.23:8080/mybucket4/">http://10.0.0.23:8080/mybucket4/</a>", host: "<a href="http://65.60.72.19:90">65.60.72.19:90</a>"</div>
</div><div><br></div><div><br></div><div>Can any body help me on this ?</div><div><br></div><div>Thanks,</div><div>Panky</div></div>