how to keep "hot" files in memory?

Roast zhang.libing at gmail.com
Fri Aug 31 01:41:58 UTC 2012


Thanks.

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 Fri, Aug 31, 2012 at 9:15 AM, Don Zhou <dzhou at netdna.com> wrote:

> Check out memcached module for nginx.
> http://wiki.nginx.org/HttpMemcachedModule. It required you to install
> memcached however.
>
> Regards
>
>
> On Thu, Aug 30, 2012 at 5:49 PM, Roast <zhang.libing at gmail.com> wrote:
>
>> Thanks.
>>
>> But it seems open_file_cache not cache the content of the file, am I
>> right?
>>
>>
>> On Thu, Aug 30, 2012 at 5:16 PM, nfn <nginx-forum at nginx.us> wrote:
>>
>>> Hello,
>>>
>>> You could try open_file_cache
>>>
>>>  http://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache
>>>
>>> Best regards
>>>
>>> Posted at Nginx Forum:
>>> http://forum.nginx.org/read.php?2,230263,230317#msg-230317
>>>
>>> _______________________________________________
>>> nginx mailing list
>>> nginx at nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx
>>>
>>
>>
>>
>> --
>> The time you enjoy wasting is not wasted time!
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
The time you enjoy wasting is not wasted time!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120831/dda7ee5f/attachment.html>


More information about the nginx mailing list