Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_fastcgi_module.xml @ 508:5e332fafd228
Documented "cache loader" and its parameters.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Apr 2012 11:09:33 +0000 |
parents | 657848837328 |
children | 0e55c9a48da9 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_fastcgi_module.xml Tue Apr 24 10:03:12 2012 +0000 +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml Tue Apr 24 11:09:33 2012 +0000 @@ -207,7 +207,10 @@ [<literal>levels</literal>=<value>levels</value>] <literal>keys_zone</literal>=<value>name</value>:<value>size</value> [<literal>inactive</literal>=<value>time</value>] - [<literal>max_size</literal>=<value>size</value>]</syntax> + [<literal>max_size</literal>=<value>size</value>] + [<literal>loader_files</literal>=<value>number</value>] + [<literal>loader_sleep</literal>=<value>time</value>] + [<literal>loader_threshold</literal>=<value>time</value>]</syntax> <default/> <context>http</context> @@ -254,6 +257,19 @@ when this size is exceeded it removes the least recently used data. </para> +<para> +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 <literal>loader_files</literal> items +are loaded (by default, 100). +Besides, the duration of one iteration is limited by the +<literal>loader_threshold</literal> parameter (by default, 200 milliseconds). +A pause is made between iterations, configured by the +<literal>loader_sleep</literal> parameter (by default, 50 milliseconds). +</para> + </directive>