<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Why do wish so much that comes from Nginx?<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I would have a look on the network table (listening and connection sockets), on the load of the network, system (processes) suring the tests.<br>
<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">But you said nothing of all that, just sending raw ab tests results which say pretty much nothing about anything...<br></div></div><div class="gmail_extra">
<br clear="all"><div><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>
<br><br><div class="gmail_quote">On Sat, May 4, 2013 at 10:09 PM, henrique matias <span dir="ltr"><<a href="mailto:hems.inlet@gmail.com" target="_blank">hems.inlet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Perhaps no matter if i change number of workers, or worker connections, there's always some super late connections on my "ab" tests..<div><br></div><div>Am very new to benchmark, but the way am doing now is:</div>
<div><br></div><div>ab -n 8000 -c 1000 <a href="http://address_to_a_plain_text_file" target="_blank">http://address_to_a_plain_text_file</a><br></div><div><br></div><div>ab -n 8000 -c 1000 <a href="http://address_to_a_rails_address_that_queries_the_database" target="_blank">http://address_to_a_rails_address_that_queries_the_database</a><br>
</div><div><br></div><div>Almost all tests i do ends up with very good results up to 90% of the requests ( both, with plain text and with rails script ), but then sometimes in this last 10% there's very slow requests ( 10x more than the fastest )..</div>
<div><br></div><div>For instance : ab -n 8000 -c 1000 <a href="http://address_to_a_plain_text_file" target="_blank">http://address_to_a_plain_text_file</a></div><div><br></div><div><div><div>Percentage of the requests served within a certain time (ms)</div>
<div> 50% 142</div><div> 66% 152</div><div> 75% 156</div><div> 80% 158</div><div> 90% 169</div><div> 95% 181</div><div> 98% 4180</div><div> 99% 5236</div><div> 100% 5485 (longest request)</div>
</div><div><br></div></div><div>The ones that goes to the database sometimes get very slow compared to plain text files, so am guessing i should enlarge somehow the pipe betweens rails and the db.</div><div><br>
</div><div>For instance : ab -n 8000 -c 1000 <a href="http://address_to_rails_touching_db_file" target="_blank">http://address_to_rails_touching_db_file</a><br></div><div><br></div><div><div>Percentage of the requests served within a certain time (ms)</div>
<div> 50% 10</div><div> 66% 10</div><div> 75% 10</div><div> 80% 11</div><div> 90% 12</div><div> 95% 13</div><div> 98% 16</div><div> 99% 25</div><div> 100% 13237 (longest request)</div>
</div><div><br></div><div><br></div><div>Even my plain text files are suffering, so i would guess that is a problem in my worker_process / worker_connections and keepalive_timeout ?</div><div><br>
</div>
<div><br></div><div>And for the file that touchs the database i would guess i should be tweaking some database configuration between my rails and mongodb...</div><div><br></div><div><br></div><div>
Any advices?</div></div>
<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>