Memcached module is a better solution, it will reduce much disk IO.
But it seems not high efficiency, we just want keep hot file in shared
memory at millions of static file. But the cache algorithms of memcached
is
LRU, so without big memory the cache will be set and then will be delete
frequently. Am I right?
And I think, maybe we need a moudle to solve this problem?
On Wed, Aug 29, 2012 at 06:39:51PM +0800, Roast wrote:
Dear all.
We use nginx to server lots of static content with high traffic loads. And
the server is getting slower, because slower SATA drive.
So I think how to keep “hot” files in memory without other software,just
like varnish or squid? Does someone has worked out modules for nginx?
Normally OS will do right thing in keeping hot files in memory
without any other software. You may want to make sure OS isn’t
low on memory though and have some memory to cache files.
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.