Forum: NGINX proxy_temp_path is very slow

Posted by Indo Php (Guest)
on 2013-02-25 15:08
(Received via mailing list)
Hello,

I'm using proxy_cache with nginx. I have nginx set as proxy cache to get 
the file from servers in onother country.

Sometimes I have almost 3000 files in the temp path, and my disk I/O is 
very high. Actually I'm using 2 SSD with RAID-0.

May I know is there any other problems? Here's my config
 proxy_cache_path /var/nginx/folder levels=1 keys_zone=one:1000m 
inactive=7d max_size=300g;
 proxy_temp_path /var/nginx/temp;
Posted by Jonathan Matthews (Guest)
on 2013-02-25 16:01
(Received via mailing list)
On 25 February 2013 14:07, Indo Php <iptablez@yahoo.com> wrote:
> inactive=7d max_size=300g;
>     proxy_temp_path   /var/nginx/temp;

If you believe that number of files causes slow IO, why not try
increasing the number of cache directories via the "levels="
parameter?

I have no opinion either way; it would just be one of the things I
would try if attempting to fix this issue for myself.

Regards,
Jonathan
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.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.