Welcome! Log In Create A New Profile

Advanced

proxy cache make system load and I/O high

eagle sbc
December 22, 2010 08:12AM
Hi, all:

This really exhaust me.

I had an nginx server with "proxy cache" on, the num of cache files is
almost 500K, and the files size are all near 50K. But now with just not up
to 200 connections, the "load average" is almost to "3", and the I/O of the
cache disk is "1000KB/s", and with lots of connections "TIME_OUT". I add
the $upstream_cache_status variable to the log, and in the result, 70% are
not using proxy cache, 20% are missing and only 10% are hit.
But I had a same server with "proxy store" on, and the num of cache files is
also 500K. But on this server, even with 1000 connections, the "load
average" is never up to "0.3", and the I/O for read is just up to "200KB/s",
and all connections are in a "ESTABLISHED" or "FIT_WAIT" status.

My question is :

1. Why with so less connections, the I/O is still so high?
2. What other operation does "proxy cache" do opposite to "proxy store"?
Aren't they all look up the file, and: if found, read file from disk; if
not, proxy to the upstream server? While in fact they are so different on
the "load average".
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy cache make system load and I/O high

eagle sbc December 22, 2010 08:12AM

Re: proxy cache make system load and I/O high

eagle sbc December 22, 2010 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready