Can't seem to get the right buffer size set
mdounin at mdounin.ru
Tue Nov 25 13:20:37 MSK 2008
On Tue, Nov 25, 2008 at 12:22:09AM -0800, mike wrote:
> To try to maximize the possibility I've set the following:
> fastcgi_buffer_size 16k;
> fastcgi_buffers 64 16k;
> fastcgi_busy_buffers_size 16k;
> This is for requests to .php scripts
> Even this, just in case:
> proxy_buffer_size 16k;
> proxy_buffers 64 16k;
> gzip_buffers 64 16k;
> Now by reading past emails this looks like I should be able to buffer
> fastcgi: (64 * 16) + 16 = 1040k per request
> proxy: (64 * 16) + 16 = 1040k per request
> even gzip 64 * 16 = 1024k
All this settings are irrelevant for client requests, they are
used only for *response* buffering.
> I am sending only 512k POST with a few headers - definately under a megabyte.
> I also have these, not sure if it matters.
> client_max_body_size 251m;
> client_header_buffer_size 8k;
> client_body_buffer_size 256k;
So you have you client request body buffer set to 256k.
Anything that don't fit will go to disk.
More information about the nginx