5 messages in ru.sysoev.nginxRe: Unsure about proxy_temp_file_writ...
FromSent OnAttachments
Dave CheneyJan 28, 2008 7:27 pm 
Maxim DouninJan 29, 2008 3:24 am 
Dave CheneyJan 29, 2008 4:10 am 
Maxim DouninJan 29, 2008 5:43 am 
ThomasJul 4, 2008 1:03 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Unsure about proxy_temp_file_write_size to prevent upstream response bufferingActions...
From:Dave Cheney (dave@public.gmane.org)
Date:Jan 29, 2008 4:10:42 am
List:ru.sysoev.nginx

Hi Maxim,

Thanks for your response, I've set my proxy directives to

proxy_buffering on; proxy_buffer_size 4k; -proxy_buffers 4 32k; +proxy_buffers 8 32k;

Which I'm guessing has 256k of buffering capacity, is that correct?

Cheers

Dave

On 29/01/2008, at 10:25 PM, Maxim Dounin wrote:

You should configure proxy_buffer_size / proxy_buffers large enough instead.

Directive proxy_temp_file_write_size basically tells nginx how many data it can flush to disk at once when writing temporary file. It may be used to prevent nginx worker process from blocking for too long in io path.