2 messages in ru.sysoev.nginxRe: Can directory for temporary files...
FromSent OnAttachments
Yusuf GoolamabbasMay 31, 2006 7:42 pm 
Igor SysoevMay 31, 2006 8:00 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: Can directory for temporary files be on tmpfsActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:May 31, 2006 8:00:59 pm
List:ru.sysoev.nginx

On Thu, 1 Jun 2006, Yusuf Goolamabbas wrote:

nginx when configured as a reverse proxy seems to utilise two directories

a) nginx http client request body temporary files: $prefix/client_body_temp b) nginx http proxy temporary files: $prefix/proxy_temp

The assumption I'm making is that nginx buffers the client body in the directory when client_body_size is greater than client_body_buffer_size and on the response writes out the response to the directory if the response size is greater than proxy_buffers

Yes. proxy_buffer_size + proxy_buffers.

Also, can the above directories be placed on tmpfs (memory filesystems). If so, are there any guidelines on sizing the filesystem

Yes, they may be on tmpfs, however, I do not think that it will be better, then using large number of the proxy_buffers. proxy_buffers are allocated on demand only.

Sorry, right now I'm going away until June 16.