Mercurial > hg > nginx-site
changeset 1189:f25d00109de0
Documented cache keys_zone memory estimates.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 15 May 2014 20:58:55 +0400 |
parents | 5d0cc9f886f4 |
children | dd4cfc6ce770 |
files | xml/en/docs/http/ngx_http_fastcgi_module.xml xml/en/docs/http/ngx_http_proxy_module.xml xml/en/docs/http/ngx_http_scgi_module.xml xml/ru/docs/http/ngx_http_fastcgi_module.xml xml/ru/docs/http/ngx_http_proxy_module.xml xml/ru/docs/http/ngx_http_scgi_module.xml |
diffstat | 6 files changed, 30 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_fastcgi_module" link="/en/docs/http/ngx_http_fastcgi_module.html" lang="en" - rev="14"> + rev="15"> <section id="summary"> @@ -340,6 +340,10 @@ are put on the same file system. In addition, all active keys and information about data are stored in a shared memory zone, whose <value>name</value> and <value>size</value> are configured by the <literal>keys_zone</literal> parameter. +One megabyte zone can store about 8 thousand keys. +</para> + +<para> Cached data that are not accessed during the time specified by the <literal>inactive</literal> parameter get removed from the cache regardless of their freshness.
--- a/xml/en/docs/http/ngx_http_proxy_module.xml +++ b/xml/en/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_proxy_module" link="/en/docs/http/ngx_http_proxy_module.html" lang="en" - rev="19"> + rev="20"> <section id="summary"> @@ -338,6 +338,10 @@ are put on the same file system. In addition, all active keys and information about data are stored in a shared memory zone, whose <value>name</value> and <value>size</value> are configured by the <literal>keys_zone</literal> parameter. +One megabyte zone can store about 8 thousand keys. +</para> + +<para> Cached data that are not accessed during the time specified by the <literal>inactive</literal> parameter get removed from the cache regardless of their freshness.
--- a/xml/en/docs/http/ngx_http_scgi_module.xml +++ b/xml/en/docs/http/ngx_http_scgi_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_scgi_module" link="/en/docs/http/ngx_http_scgi_module.html" lang="en" - rev="1"> + rev="2"> <section id="summary"> @@ -330,6 +330,10 @@ are put on the same file system. In addition, all active keys and information about data are stored in a shared memory zone, whose <value>name</value> and <value>size</value> are configured by the <literal>keys_zone</literal> parameter. +One megabyte zone can store about 8 thousand keys. +</para> + +<para> Cached data that are not accessed during the time specified by the <literal>inactive</literal> parameter get removed from the cache regardless of their freshness.
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_fastcgi_module" link="/ru/docs/http/ngx_http_fastcgi_module.html" lang="ru" - rev="14"> + rev="15"> <section id="summary"> @@ -338,6 +338,10 @@ fastcgi_cache_path /data/nginx/cache lev Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, <value>имя</value> и <value>размер</value> которой задаются параметром <literal>keys_zone</literal>. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. +</para> + +<para> Если к данным кэша не обращаются в течение времени, заданного параметром <literal>inactive</literal>, то данные удаляются, независимо от их свежести. По умолчанию <literal>inactive</literal> равен 10 минутам.
--- a/xml/ru/docs/http/ngx_http_proxy_module.xml +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_proxy_module" link="/ru/docs/http/ngx_http_proxy_module.html" lang="ru" - rev="19"> + rev="20"> <section id="summary"> @@ -336,6 +336,10 @@ proxy_cache_path /data/nginx/cache level Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, <value>имя</value> и <value>размер</value> которой задаются параметром <literal>keys_zone</literal>. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. +</para> + +<para> Если к данным кэша не обращаются в течение времени, заданного параметром <literal>inactive</literal>, то данные удаляются, независимо от их свежести. По умолчанию <literal>inactive</literal> равен 10 минутам.
--- a/xml/ru/docs/http/ngx_http_scgi_module.xml +++ b/xml/ru/docs/http/ngx_http_scgi_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_scgi_module" link="/ru/docs/http/ngx_http_scgi_module.html" lang="ru" - rev="1"> + rev="2"> <section id="summary"> @@ -329,6 +329,10 @@ scgi_cache_path /data/nginx/cache levels Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, <value>имя</value> и <value>размер</value> которой задаются параметром <literal>keys_zone</literal>. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. +</para> + +<para> Если к данным кэша не обращаются в течение времени, заданного параметром <literal>inactive</literal>, то данные удаляются, независимо от их свежести. По умолчанию <literal>inactive</literal> равен 10 минутам.