proxy buffering for media files?

Maxim Dounin mdounin at
Wed Sep 4 10:45:08 UTC 2013


On Wed, Sep 04, 2013 at 07:12:22AM +0300, wishmaster wrote:


> > > What is a common use case for using proxy_buffering? Since it's a default
> > > option, I assume it's commonly used and for good reason. I'm just having a
> > > hard time applying the thought process to my specific setup.
> > 
> > As long as your backend servers aren't limited on the number of 
> > connections they can handle, best aproach would be to keep 
> > proxy_buffering switched on, but switch off disk buffering using 
> > proxy_max_temp_file_size.
> > 
>   Could you explain why this approach is not suitable for case 
>   when backend servers are limited on number of connections.

If backends are connection-bound, in many cases it's more 
effective to buffer responses to disk instead of keeping backend 
connections busy.

Maxim Dounin

More information about the nginx mailing list