Forum: NGINX Setting large proxy_buffer_size

Posted by spacerobot (Guest)
on 2012-12-06 20:06
(Received via mailing list)
Ran into an issue that I needed to set a larger proxy_buffer_size (e.g. 
to
128k). It works after increasing.

However my question is: what's the disadvantages of setting a large 
buffer
size? If there is no disadvantage, why the default is only 8k? Is there 
a
certain value that I certainly shouldn't set it larger than that?

Thanks!

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233654,233654#msg-233654
Posted by Maxim Dounin (Guest)
on 2012-12-07 17:19
(Received via mailing list)
Hello!

On Thu, Dec 06, 2012 at 02:06:26PM -0500, spacerobot wrote:

> Ran into an issue that I needed to set a larger proxy_buffer_size (e.g. to
> 128k). It works after increasing.
>
> However my question is: what's the disadvantages of setting a large buffer
> size? If there is no disadvantage, why the default is only 8k? Is there a
> certain value that I certainly shouldn't set it larger than that?

Obvious disadvantage is that it needs more memory if set to a
bigger value.  It's set to pagesize by default as it's an amount
of memory which may be effeciently allocated, and sufficient for
most uses (which doesn't try to abuse HTTP headers to transfer
data).

--
Maxim Dounin
http://nginx.com/support.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.