Welcome! Log In Create A New Profile

Advanced

Re: proxy buffering for media files?

Maxim Dounin
September 04, 2013 12:42PM
Hello!

On Wed, Sep 04, 2013 at 11:40:27AM -0400, bkosborne wrote:

> Why not just turn off buffering completely?

There are at least three reasons:

1) Turning off buffering will result in more CPU usage (and worse
network utilization in some cases).

2) It doesn't work with limit_rate (not even talking about
proxy_cache which implies disk buffering).

3) Even small memory buffering saves some backend connections, and
you can tune number/size of buffers used based on the available
memory.

General recommendation is to avoid switching off proxy_buffering
unless your application really needs it, e.g. it does some form of
HTTP low-bandwidth streaming and needs nginx to send data to
a client immediately.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy buffering for media files?

bkosborne September 03, 2013 10:39AM

Re: proxy buffering for media files?

bkosborne September 03, 2013 10:44AM

Re: proxy buffering for media files?

Maxim Dounin September 03, 2013 10:58AM

Re[2]: proxy buffering for media files?

artem September 04, 2013 12:14AM

Re: proxy buffering for media files?

Maxim Dounin September 04, 2013 06:46AM

Re: proxy buffering for media files?

bkosborne September 04, 2013 10:45AM

Re: proxy buffering for media files?

Maxim Dounin September 04, 2013 11:20AM

Re: proxy buffering for media files?

bkosborne September 04, 2013 11:40AM

Re: proxy buffering for media files?

Maxim Dounin September 04, 2013 12:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready