hello!<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">If you want nginx to don't touch disk, use<br><br>
proxy_max_temp_file_size 0;<br><br>
instead. This will still allow in-memory buffering and wouldn't<br>
touch disk.<br></blockquote>
<br>Because the client bandwidth is usually slow, in this case, tons of upstream content will be buffer in memory before sent out to client, and then the swap will be used and the server is going down soon.<br><br><div class="gmail_quote">
On Fri, Sep 30, 2011 at 5:18 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello!<br>
<div class="im"><br>
On Fri, Sep 30, 2011 at 04:22:52PM +0800, li zJay wrote:<br>
<br>
> set "proxy_buffering on", the upstream response may touch the disk<br>
> this suffers a lot when nginx is used as a proxy to file download servers.<br>
<br>
</div>If you want nginx to don't touch disk, use<br>
<br>
proxy_max_temp_file_size 0;<br>
<br>
instead. This will still allow in-memory buffering and wouldn't<br>
touch disk.<br>
<font color="#888888"><br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
><br>
> On Thu, Sep 29, 2011 at 7:31 AM, mojiz <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br>
><br>
> > Thanks Max.<br>
> > It worked!<br>
> ><br>
> > Posted at Nginx Forum:<br>
> > <a href="http://forum.nginx.org/read.php?2,215989,215991#msg-215991" target="_blank">http://forum.nginx.org/read.php?2,215989,215991#msg-215991</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>
> ><br>
><br>
><br>
><br>
> --<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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><br>