9 messages in ru.sysoev.nginxRe: avoiding disk cache on proxy ?
FromSent OnAttachments
Jonathan VanascoJan 15, 2007 1:31 pm 
Ezra ZygmuntowiczJan 15, 2007 6:43 pm 
Jonathan VanascoJan 15, 2007 11:38 pm 
Igor SysoevJan 16, 2007 12:09 pm 
Igor SysoevJan 16, 2007 12:11 pm 
Igor SysoevJan 16, 2007 12:17 pm 
Jonathan VanascoJan 16, 2007 12:44 pm 
Igor SysoevJan 16, 2007 12:58 pm 
Aleksandar LazicJan 16, 2007 1:41 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: avoiding disk cache on proxy ?Actions...
From:Ezra Zygmuntowicz (ezmo@public.gmane.org)
Date:Jan 15, 2007 6:43:51 pm
List:ru.sysoev.nginx

On Jan 15, 2007, at 1:31 PM, Jonathan Vanasco wrote:

nginx caches some of my pages to disk during proxy requests because it is too large

i'd like to avoid this as much as possible, as the disk io is annoying.

can anyone recommend some settings for proxy_buffering proxy_buffer_size proxy_buffers

i'd like to avoid writing to disk entirely. i'd be fine with dedicate 20mb or so to this if needed.

Hey Jonathan-

Here is my proxy settings:

proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; proxy_max_temp_file_size 0;

the proxy_max_temp_file_size 0; one is the ticket. That will stop it from buffering to disk.