Roast
August 30, 2012 09:44PM
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@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@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@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@nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx
>>>
>>
>>
>>
>> --
>> The time you enjoy wasting is not wasted time!
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
The time you enjoy wasting is not wasted time!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to keep "hot" files in memory?

Roast August 29, 2012 06:42AM

RE: how to keep "hot" files in memory?

Richard Kearsley August 29, 2012 06:50AM

Re: how to keep "hot" files in memory?

nfn August 30, 2012 05:16AM

Re: how to keep "hot" files in memory?

Roast August 30, 2012 08:52PM

Re: how to keep "hot" files in memory?

Don Zhou August 30, 2012 09:16PM

Re: how to keep "hot" files in memory?

Roast August 30, 2012 09:44PM

Re: how to keep "hot" files in memory?

Maxim Dounin August 31, 2012 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
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