# HG changeset patch # User Yaroslav Zhuravlev # Date 1475861711 -10800 # Node ID bc6341aaa83274740f912ee3eee14dd834fd8863 # Parent 2245f2827e2fc800f46bcb8af1363a304c7f6714 Added cache manager parameters to proxy_cache path and friends. 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="38">
@@ -342,6 +342,9 @@ will be cached. keys_zone=name:size [inactive=time] [max_size=size] + [manager_files=number] + [manager_sleep=time] + [manager_threshold=time] [loader_files=number] [loader_sleep=time] [loader_threshold=time] @@ -407,13 +410,23 @@ By default, inactive The special “cache manager” process monitors the maximum cache size set by the max_size parameter. When this size is exceeded, it removes the least recently used data. +The data is removed in iterations configured by +manager_files, +manager_threshold, and +manager_sleep parameters (1.11.5). +During one iteration no more than manager_files items +are deleted ( by default, 100). +The duration of one iteration is limited by the +manager_threshold parameter (by default, 200 milliseconds). +Between iterations, a pause configured by the manager_sleep +parameter (by default, 50 milliseconds) is made. A minute after the start the special “cache loader” process is activated. It loads information about previously cached data stored on file system into a cache zone. -The loading is done in iterations. +The loading is also done in iterations. During one iteration no more than loader_files items are loaded (by default, 100). Besides, the duration of one iteration is limited by the 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="51">
@@ -358,6 +358,9 @@ will be cached. keys_zone=name:size [inactive=time] [max_size=size] + [manager_files=number] + [manager_sleep=time] + [manager_threshold=time] [loader_files=number] [loader_sleep=time] [loader_threshold=time] @@ -423,13 +426,23 @@ By default, inactive The special “cache manager” process monitors the maximum cache size set by the max_size parameter. When this size is exceeded, it removes the least recently used data. +The data is removed in iterations configured by +manager_files, +manager_threshold, and +manager_sleep parameters (1.11.5). +During one iteration no more than manager_files items +are deleted ( by default, 100). +The duration of one iteration is limited by the +manager_threshold parameter (by default, 200 milliseconds). +Between iterations, a pause configured by the manager_sleep +parameter (by default, 50 milliseconds) is made. A minute after the start the special “cache loader” process is activated. It loads information about previously cached data stored on file system into a cache zone. -The loading is done in iterations. +The loading is also done in iterations. During one iteration no more than loader_files items are loaded (by default, 100). Besides, the duration of one iteration is limited by the 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="27">
@@ -333,6 +333,9 @@ will be cached. keys_zone=name:size [inactive=time] [max_size=size] + [manager_files=number] + [manager_sleep=time] + [manager_threshold=time] [loader_files=number] [loader_sleep=time] [loader_threshold=time] @@ -398,13 +401,23 @@ By default, inactive The special “cache manager” process monitors the maximum cache size set by the max_size parameter. When this size is exceeded, it removes the least recently used data. +The data is removed in iterations configured by +manager_files, +manager_threshold, and +manager_sleep parameters (1.11.5). +During one iteration no more than manager_files items +are deleted ( by default, 100). +The duration of one iteration is limited by the +manager_threshold parameter (by default, 200 milliseconds). +Between iterations, a pause configured by the manager_sleep +parameter (by default, 50 milliseconds) is made. A minute after the start the special “cache loader” process is activated. It loads information about previously cached data stored on file system into a cache zone. -The loading is done in iterations. +The loading is also done in iterations. During one iteration no more than loader_files items are loaded (by default, 100). Besides, the duration of one iteration is limited by the diff --git a/xml/en/docs/http/ngx_http_uwsgi_module.xml b/xml/en/docs/http/ngx_http_uwsgi_module.xml --- a/xml/en/docs/http/ngx_http_uwsgi_module.xml +++ b/xml/en/docs/http/ngx_http_uwsgi_module.xml @@ -10,7 +10,7 @@ + rev="30">
@@ -333,6 +333,9 @@ will be cached. keys_zone=name:size [inactive=time] [max_size=size] + [manager_files=number] + [manager_sleep=time] + [manager_threshold=time] [loader_files=number] [loader_sleep=time] [loader_threshold=time] @@ -398,13 +401,23 @@ By default, inactive The special “cache manager” process monitors the maximum cache size set by the max_size parameter. When this size is exceeded, it removes the least recently used data. +The data is removed in iterations configured by +manager_files, +manager_threshold, and +manager_sleep parameters (1.11.5). +During one iteration no more than manager_files items +are deleted ( by default, 100). +The duration of one iteration is limited by the +manager_threshold parameter (by default, 200 milliseconds). +Between iterations, a pause configured by the manager_sleep +parameter (by default, 50 milliseconds) is made. A minute after the start the special “cache loader” process is activated. It loads information about previously cached data stored on file system into a cache zone. -The loading is done in iterations. +The loading is also done in iterations. During one iteration no more than loader_files items are loaded (by default, 100). Besides, the duration of one iteration is limited by the 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="38">
@@ -341,6 +341,9 @@ fastcgi_cache_key localhost:9000$request keys_zone=имя:размер [inactive=время] [max_size=размер] + [manager_files=число] + [manager_sleep=время] + [manager_threshold=время] [loader_files=число] [loader_sleep=время] [loader_threshold=время] @@ -404,13 +407,23 @@ fastcgi_cache_path /data/nginx/cache lev Специальный процесс “cache manager” следит за максимальным размером кэша, заданным параметром max_size, и при превышении его размеров удаляет наименее востребованные данные. +Удаление данных происходит итерациями, настраиваемыми параметрами (1.11.5) +manager_files, +manager_threshold и +manager_sleep. +За одну итерацию загружается не более manager_files +элементов (по умолчанию 100). +Время работы одной итерации ограничено параметром +manager_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +manager_sleep (по умолчанию 50 миллисекунд). Через минуту после старта активируется специальный процесс “cache loader”, который загружает в зону кэша информацию о ранее закэшированных данных, хранящихся на файловой системе. -Загрузка происходит итерациями. +Загрузка также происходит итерациями. За одну итерацию загружается не более loader_files элементов (по умолчанию 100). Кроме того, время работы одной итерации ограничено параметром 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="51">
@@ -358,6 +358,9 @@ proxy_cache_key $scheme$proxy_host$uri$i keys_zone=имя:размер [inactive=время] [max_size=размер] + [manager_files=число] + [manager_sleep=время] + [manager_threshold=время] [loader_files=число] [loader_sleep=время] [loader_threshold=время] @@ -421,13 +424,23 @@ proxy_cache_path /data/nginx/cache level Специальный процесс “cache manager” следит за максимальным размером кэша, заданным параметром max_size, и при превышении его размеров удаляет наименее востребованные данные. +Удаление данных происходит итерациями, настраиваемыми параметрами (1.11.5) +manager_files, +manager_threshold и +manager_sleep. +За одну итерацию загружается не более manager_files +элементов (по умолчанию 100). +Время работы одной итерации ограничено параметром +manager_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +manager_sleep (по умолчанию 50 миллисекунд). Через минуту после старта активируется специальный процесс “cache loader”, который загружает в зону кэша информацию о ранее закэшированных данных, хранящихся на файловой системе. -Загрузка происходит итерациями. +Загрузка также происходит итерациями. За одну итерацию загружается не более loader_files элементов (по умолчанию 100). Кроме того, время работы одной итерации ограничено параметром 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="27">
@@ -332,6 +332,9 @@ scgi_cache_key localhost:9000$request_ur keys_zone=имя:размер [inactive=время] [max_size=размер] + [manager_files=число] + [manager_sleep=время] + [manager_threshold=время] [loader_files=число] [loader_sleep=время] [loader_threshold=время] @@ -395,13 +398,23 @@ scgi_cache_path /data/nginx/cache levels Специальный процесс “cache manager” следит за максимальным размером кэша, заданным параметром max_size, и при превышении его размеров удаляет наименее востребованные данные. +Удаление данных происходит итерациями, настраиваемыми параметрами (1.11.5) +manager_files, +manager_threshold и +manager_sleep. +За одну итерацию загружается не более manager_files +элементов (по умолчанию 100). +Время работы одной итерации ограничено параметром +manager_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +manager_sleep (по умолчанию 50 миллисекунд). Через минуту после старта активируется специальный процесс “cache loader”, который загружает в зону кэша информацию о ранее закэшированных данных, хранящихся на файловой системе. -Загрузка происходит итерациями. +Загрузка также происходит итерациями. За одну итерацию загружается не более loader_files элементов (по умолчанию 100). Кроме того, время работы одной итерации ограничено параметром diff --git a/xml/ru/docs/http/ngx_http_uwsgi_module.xml b/xml/ru/docs/http/ngx_http_uwsgi_module.xml --- a/xml/ru/docs/http/ngx_http_uwsgi_module.xml +++ b/xml/ru/docs/http/ngx_http_uwsgi_module.xml @@ -10,7 +10,7 @@ + rev="30">
@@ -331,6 +331,9 @@ uwsgi_cache_key localhost:9000$request_u keys_zone=имя:размер [inactive=время] [max_size=размер] + [manager_files=число] + [manager_sleep=время] + [manager_threshold=время] [loader_files=число] [loader_sleep=время] [loader_threshold=время] @@ -394,13 +397,23 @@ uwsgi_cache_path /data/nginx/cache level Специальный процесс “cache manager” следит за максимальным размером кэша, заданным параметром max_size, и при превышении его размеров удаляет наименее востребованные данные. +Удаление данных происходит итерациями, настраиваемыми параметрами (1.11.5) +manager_files, +manager_threshold и +manager_sleep. +За одну итерацию загружается не более manager_files +элементов (по умолчанию 100). +Время работы одной итерации ограничено параметром +manager_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +manager_sleep (по умолчанию 50 миллисекунд). Через минуту после старта активируется специальный процесс “cache loader”, который загружает в зону кэша информацию о ранее закэшированных данных, хранящихся на файловой системе. -Загрузка происходит итерациями. +Загрузка также происходит итерациями. За одну итерацию загружается не более loader_files элементов (по умолчанию 100). Кроме того, время работы одной итерации ограничено параметром