# HG changeset patch # User Maxim Dounin # Date 1400173135 -14400 # Node ID f25d00109de008204aac49b3c19d6e80ddb8c206 # Parent 5d0cc9f886f44268bf8aefb7ed3de41838a884e4 Documented cache keys_zone memory estimates. diff --git a/xml/en/docs/http/ngx_http_fastcgi_module.xml b/xml/en/docs/http/ngx_http_fastcgi_module.xml --- a/xml/en/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ + rev="15">
@@ -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 name and size are configured by the keys_zone parameter. +One megabyte zone can store about 8 thousand keys. + + + Cached data that are not accessed during the time specified by the inactive parameter get removed from the cache regardless of their freshness. diff --git a/xml/en/docs/http/ngx_http_proxy_module.xml b/xml/en/docs/http/ngx_http_proxy_module.xml --- a/xml/en/docs/http/ngx_http_proxy_module.xml +++ b/xml/en/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ + rev="20">
@@ -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 name and size are configured by the keys_zone parameter. +One megabyte zone can store about 8 thousand keys. + + + Cached data that are not accessed during the time specified by the inactive parameter get removed from the cache regardless of their freshness. diff --git a/xml/en/docs/http/ngx_http_scgi_module.xml b/xml/en/docs/http/ngx_http_scgi_module.xml --- a/xml/en/docs/http/ngx_http_scgi_module.xml +++ b/xml/en/docs/http/ngx_http_scgi_module.xml @@ -10,7 +10,7 @@ + rev="2">
@@ -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 name and size are configured by the keys_zone parameter. +One megabyte zone can store about 8 thousand keys. + + + Cached data that are not accessed during the time specified by the inactive parameter get removed from the cache regardless of their freshness. diff --git a/xml/ru/docs/http/ngx_http_fastcgi_module.xml b/xml/ru/docs/http/ngx_http_fastcgi_module.xml --- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ + rev="15">
@@ -338,6 +338,10 @@ fastcgi_cache_path /data/nginx/cache lev Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, имя и размер которой задаются параметром keys_zone. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. + + + Если к данным кэша не обращаются в течение времени, заданного параметром inactive, то данные удаляются, независимо от их свежести. По умолчанию inactive равен 10 минутам. diff --git a/xml/ru/docs/http/ngx_http_proxy_module.xml b/xml/ru/docs/http/ngx_http_proxy_module.xml --- a/xml/ru/docs/http/ngx_http_proxy_module.xml +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml @@ -10,7 +10,7 @@ + rev="20">
@@ -336,6 +336,10 @@ proxy_cache_path /data/nginx/cache level Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, имя и размер которой задаются параметром keys_zone. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. + + + Если к данным кэша не обращаются в течение времени, заданного параметром inactive, то данные удаляются, независимо от их свежести. По умолчанию inactive равен 10 минутам. diff --git a/xml/ru/docs/http/ngx_http_scgi_module.xml b/xml/ru/docs/http/ngx_http_scgi_module.xml --- a/xml/ru/docs/http/ngx_http_scgi_module.xml +++ b/xml/ru/docs/http/ngx_http_scgi_module.xml @@ -10,7 +10,7 @@ + rev="2">
@@ -329,6 +329,10 @@ scgi_cache_path /data/nginx/cache levels Кроме того, все активные ключи и информация о данных хранятся в зоне разделяемой памяти, имя и размер которой задаются параметром keys_zone. +Зоны размером в 1 мегабайт достаточно для хранения около 8 тысяч ключей. + + + Если к данным кэша не обращаются в течение времени, заданного параметром inactive, то данные удаляются, независимо от их свежести. По умолчанию inactive равен 10 минутам.