# HG changeset patch # User Ruslan Ermilov # Date 1335265773 0 # Node ID 5e332fafd228a4b065c2ec3daff6cc90cf4cfd96 # Parent d00a4f9b1c5d7a37a92621266eb59b15b0839f68 Documented "cache loader" and its parameters. 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 @@ -207,7 +207,10 @@ will be cached. [levels=levels] keys_zone=name:size [inactive=time] - [max_size=size] + [max_size=size] + [loader_files=number] + [loader_sleep=time] + [loader_threshold=time] http @@ -254,6 +257,19 @@ by the max_size param when this size is exceeded it removes the least recently used data. + +A minute after the start the special process “cache loader” is activated +that loads information about previously cached data stored on file system +into a cache zone. +A load is 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 +loader_threshold parameter (by default, 200 milliseconds). +A pause is made between iterations, configured by the +loader_sleep parameter (by default, 50 milliseconds). + + 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 @@ -248,7 +248,10 @@ will be cached. [levels=levels] keys_zone=name:size [inactive=time] - [max_size=size] + [max_size=size] + [loader_files=number] + [loader_sleep=time] + [loader_threshold=time] http @@ -295,6 +298,19 @@ by the max_size param when this size is exceeded it removes the least recently used data. + +A minute after the start the special process “cache loader” is activated +that loads information about previously cached data stored on file system +into a cache zone. +A load is 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 +loader_threshold parameter (by default, 200 milliseconds). +A pause is made between iterations, configured by the +loader_sleep parameter (by default, 50 milliseconds). + + 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 @@ -205,7 +205,10 @@ fastcgi_cache_key localhost:9000$request [levels=уровни] keys_zone=имя:размер [inactive=время] - [max_size=размер] + [max_size=размер] + [loader_files=число] + [loader_sleep=время] + [loader_threshold=время] http @@ -252,6 +255,19 @@ fastcgi_cache_path /data/nginx/cache lev его размеров удаляет наименее востребованные данные. + +Через минуту после старта активируется специальный процесс “cache loader”, +который загружает в зону кэша информацию о ранее закэшированных данных, +хранящихся на файловой системе. +Загрузка происходит итерациями. +За одну итерацию загружается не более loader_files +элементов (по умолчанию 100). +Кроме того, время работы одной итерации ограничено параметром +loader_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +loader_sleep (по умолчанию 50 миллисекунд). + + 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 @@ -246,7 +246,10 @@ proxy_cache_key $scheme$proxy_host$uri$i [levels=уровни] keys_zone=имя:размер [inactive=время] - [max_size=размер] + [max_size=размер] + [loader_files=число] + [loader_sleep=время] + [loader_threshold=время] http @@ -293,6 +296,19 @@ proxy_cache_path /data/nginx/cache level его размеров удаляет наименее востребованные данные. + +Через минуту после старта активируется специальный процесс “cache loader”, +который загружает в зону кэша информацию о ранее закэшированных данных, +хранящихся на файловой системе. +Загрузка происходит итерациями. +За одну итерацию загружается не более loader_files +элементов (по умолчанию 100). +Кроме того, время работы одной итерации ограничено параметром +loader_threshold (по умолчанию 200 миллисекунд). +Между итерациями делается пауза на время, заданное параметром +loader_sleep (по умолчанию 50 миллисекунд). + +