Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.44

All files from this thread

File Name File Size   Posted by Date  
patch.fastcgi.cache 8.7 KB open | download Igor Sysoev 03/23/2009 Read message
Johan Bergström
March 25, 2009 01:36PM
On Mar 25, 2009, at 18:16 , Igor Sysoev wrote:

> On Tue, Mar 24, 2009 at 07:22:03PM +0100, J?r?me Loyet wrote:
>
>>>> Other question, how can I determine the maximum number of cache
>>>> entrie
>>>> I have with a particular conf ?
>>>>
>>>> proxy_cache_path /data/nginx/cache keys_zone=one:10m;
>>>>
>>>> What is the size of keys on shared mem (X bytes). So that I can
>>>> extrapole the maximum number N of cache entries with YMo of shared
>>>> memory (N = (Y x 1024 x 1024) / X). (if there is nothing elese in
>>>> the
>>>> shared mem and if the key size is constant)
>>>
>>> The key size is 128 bytes.
>>
>> Thanks for the answer.
>>
>> Is there a way to know the effective used size in the SHM segement ?
>
> No, if shared memory is overflowed you will see in error_log the
> message:
> "ngx_slab_alloc(): failed". The problem is that currently no way to
> see
> what memory zone is overflowed: no name and subsystem (proxy cache,
> ssl_session_cache, limit requests, etc.) I'm going to fix this.

Would it be possible to somehow add this into the status module, so
it's possible to graph both disk allocation and other stats such as
hits/misses?

>
>> Another question about proxy_cache_valid. Let say I set it to 10m. I
>> do some hits and the requests are cached well. Now I update my conf
>> and set proxy_cache_valid to 30s and send a HUP signal to nginx. How
>> is already cached files timeout handled at restart or reload ?
>>
>> Is the cache going to be mark as stale 30s after ?
>> Is the cache going to stay in the cache until its 10m timeout is
>> reached (and then be recached with a 30s timeout) ?
>
> The second. The valid time is stored in both memory and file as
> now + proxy_cache_valid. Therefore, a response will be valid
> for 10m after its creation, and then will be recached for 30s.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
Subject Author Posted

nginx-0.7.44

Igor Sysoev March 23, 2009 10:00AM

Re: nginx-0.7.44

lhmwzy March 23, 2009 10:09AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 10:59AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:12AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:20AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:22AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:37AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:46AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:55AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 12:24PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 12:31PM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 02:15PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 04:30PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 04:18AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:13AM

Re: nginx-0.7.44

Kevin Worthington March 23, 2009 11:00AM

Re: nginx-0.7.44

Delta Yeh March 23, 2009 11:02AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:20AM

RE: nginx-0.7.44

Floren Munteanu March 23, 2009 12:25PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 12:30PM

Re: nginx-0.7.44

Anton Yuzhaninov March 23, 2009 12:36PM

Re: nginx-0.7.44

Floren Munteanu March 23, 2009 01:14PM

Re: nginx-0.7.44 Attachments

Igor Sysoev March 23, 2009 01:22PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:29PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:47PM

Re: nginx-0.7.44

Igor Sysoev March 24, 2009 01:03PM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:08AM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:07PM

Re: nginx-0.7.44

Igor Sysoev March 24, 2009 12:12PM

Re: nginx-0.7.44

Igor Sysoev March 25, 2009 01:16PM

Re: nginx-0.7.44

Johan Bergström March 25, 2009 01:36PM

Re: nginx-0.7.44

Igor Sysoev March 26, 2009 02:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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