nginx won't honor limit_rate
li zJay
zjay1987 at gmail.com
Fri Sep 30 14:56:41 UTC 2011
hello!
If you want nginx to don't touch disk, use
>
> proxy_max_temp_file_size 0;
>
> instead. This will still allow in-memory buffering and wouldn't
> touch disk.
>
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.
On Fri, Sep 30, 2011 at 5:18 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Fri, Sep 30, 2011 at 04:22:52PM +0800, li zJay wrote:
>
> > set "proxy_buffering on", the upstream response may touch the disk
> > this suffers a lot when nginx is used as a proxy to file download
> servers.
>
> If you want nginx to don't touch disk, use
>
> proxy_max_temp_file_size 0;
>
> instead. This will still allow in-memory buffering and wouldn't
> touch disk.
>
> Maxim Dounin
>
> >
> > On Thu, Sep 29, 2011 at 7:31 AM, mojiz <nginx-forum at nginx.us> wrote:
> >
> > > Thanks Max.
> > > It worked!
> > >
> > > Posted at Nginx Forum:
> > > http://forum.nginx.org/read.php?2,215989,215991#msg-215991
> > >
> > > _______________________________________________
> > > nginx mailing list
> > > nginx at nginx.org
> > > http://mailman.nginx.org/mailman/listinfo/nginx
> > >
> >
> >
> >
> > --
>
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110930/9781426e/attachment.html>
More information about the nginx
mailing list