<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Short answer:<br>Not nginx-related (you are on the nginx mailing list).<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br>Long answer:<br>As your log clearly indicates, your upstream sometimes fails either by resetting connections improperly or even by not accepting them at all.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Everything indicates your backend does not sustain the load.<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">The most troublesome part is IMHO the fact it kills active connections improperly. Try to get information on what happens on the backend machine.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">See if something like shortage of file descriptors or anything leading to connection disruption.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">One thing you could do to alleviate the load on the backend with the current setup would be to add cache where you proxy/redirect requests to your backend (See *_cache directives, depending on the module you are using).<br></div><div class="gmail_extra"><div><div class="gmail_signature"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></div></div>
<br><div class="gmail_quote">On Wed, Nov 19, 2014 at 9:59 AM, nmhaske <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
When i run my Jmeter load test with 2000 users ,I got below 2 error in nginx<br>
error log frequently.<br>
<br>
/opt/nginx/logs/error.log=><br>
<br>
2014/11/06 11:05:40 [error] 3430#0: *18263 connect() failed (110: Connection<br>
timed out) while connecting to upstream, client: 54.176.137.82, server:<br>
<a href="http://proteus.io" target="_blank">proteus.io</a>, request: "POST /v1/!syncData/1415271933826/sync HTTP/1.1",<br>
upstream:<br>
"<a href="http://127.0.0.1:2480/function/pharos/syncData/1415271933826/sync" target="_blank">http://127.0.0.1:2480/function/pharos/syncData/1415271933826/sync</a>", host:<br>
"<a href="http://perf.proteus.io" target="_blank">perf.proteus.io</a>"<br>
<br>
<br>
2014/11/06 11:05:46 [error] 3430#0: *18266 recv() failed (104: Connection<br>
reset by peer) while reading response header from upstream, client:<br>
<a href="tel:54.177.66.244" value="+15417766244">54.177.66.244</a>, server: <a href="http://proteus.io" target="_blank">proteus.io</a>, request: "POST<br>
/v1/!syncData/1415271934189/sync HTTP/1.1", upstream:<br>
"<a href="http://127.0.0.1:2480/function/pharos/syncData/1415271934189/sync" target="_blank">http://127.0.0.1:2480/function/pharos/syncData/1415271934189/sync</a>", host:<br>
"<a href="http://perf.proteus.io" target="_blank">perf.proteus.io</a>"<br>
<br>
<br>
We are using nginx as web server and orientdb as database.<br>
So please suggest solution to resolve this issues.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,254911,254911#msg-254911" target="_blank">http://forum.nginx.org/read.php?2,254911,254911#msg-254911</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>