Seems a performance issue with nginx serving large file. I configure nginx with the following options and it&#39;s much better now. I&#39;ll make more test and get back updated.<div>







<p class="p1">sendfile &nbsp; &nbsp; &nbsp; &nbsp;off;</p><p class="p1">output_buffers 1 1024k;</p>
<p class="p1">aio on;</p>
<p class="p1">directio 1024;</p><br><div class="gmail_quote">2012/8/18 ·ûÓÀÌΠ<span dir="ltr">&lt;<a href="mailto:yongtaofu@gmail.com" target="_blank">yongtaofu@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can somebody provide some insight on this issue? Thank you very much.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/8/17 ·ûÓÀÌΠ<span dir="ltr">&lt;<a href="mailto:yongtaofu@gmail.com" target="_blank">yongtaofu@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry to tell you it is not related to ubuntu, nginx not working on glusterfs volume both on redhat and ubuntu.<div>
<div><br><br><div class="gmail_quote">2012/8/17 ·ûÓÀÌΠ<span dir="ltr">&lt;<a href="mailto:yongtaofu@gmail.com" target="_blank">yongtaofu@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It occurs on redhat 6.3 with kernel 2.6.32-279.el6.x86_64, but nginx works fine on glusterfs volume on ubuntu 12.<br>Any suggestions?<div>


<div><br><br><div class="gmail_quote">2012/8/17 ·ûÓÀÌΠ<span dir="ltr">&lt;<a href="mailto:yongtaofu@gmail.com" target="_blank">yongtaofu@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear experts,<br><br>Currently I encountered an issue about nginx using glusterfs volume as webroot. <br>It ends up with nginx can&#39;t read file concurrently.<br>



<br>for example if I download an large file from nginx http server from&nbsp; two clients one of them will block.<br>
<br>for example<br>[<a href="mailto:root@10.10.135.21" target="_blank">root@10.10.135.21</a>]$ curl <a href="http://10.10.135.21:45678/mnt/teamshare/software/testfolder/test.10gfile" target="_blank">10.10.135.21:45678/mnt/teamshare/software/testfolder/test.10gfile</a> -v&nbsp; &gt; /dev/null<br>




<br clear="all">[<a href="mailto:root@10.10.135.23" target="_blank">root@10.10.135.23</a>]$ curl <a href="http://10.10.135.21:45678/mnt/teamshare/software/testfolder/test.10gfile" target="_blank">10.10.135.21:45678/mnt/teamshare/software/testfolder/test.10gfile</a> -v&nbsp; &gt; /dev/null<br>




<br>the second download will block.<br><br>The issue only occur when nginx work with glusterfs volume. Apache with glusterfs volume is fine.<br>My glusterfs version is 3.2.5.<br><br>Any one known what&#39;s the root cause?<br>




Thank you very much!<span><font color="#888888"><br><br>-- <br>·ûÓÀÌÎ<br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>·ûÓÀÌÎ<br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>·ûÓÀÌÎ<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>·ûÓÀÌÎ<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>·ûÓÀÌÎ<br>
</div>