comparison 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
comparison
equal deleted inserted replaced
507:d00a4f9b1c5d 508:5e332fafd228
205 <syntax> 205 <syntax>
206 <value>path</value> 206 <value>path</value>
207 [<literal>levels</literal>=<value>levels</value>] 207 [<literal>levels</literal>=<value>levels</value>]
208 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> 208 <literal>keys_zone</literal>=<value>name</value>:<value>size</value>
209 [<literal>inactive</literal>=<value>time</value>] 209 [<literal>inactive</literal>=<value>time</value>]
210 [<literal>max_size</literal>=<value>size</value>]</syntax> 210 [<literal>max_size</literal>=<value>size</value>]
211 [<literal>loader_files</literal>=<value>number</value>]
212 [<literal>loader_sleep</literal>=<value>time</value>]
213 [<literal>loader_threshold</literal>=<value>time</value>]</syntax>
211 <default/> 214 <default/>
212 <context>http</context> 215 <context>http</context>
213 216
214 <para> 217 <para>
215 Sets path and other parameters of a cache. 218 Sets path and other parameters of a cache.
250 253
251 <para> 254 <para>
252 The special process “cache manager” monitors the maximum cache size set 255 The special process “cache manager” monitors the maximum cache size set
253 by the <literal>max_size</literal> parameter; 256 by the <literal>max_size</literal> parameter;
254 when this size is exceeded it removes the least recently used data. 257 when this size is exceeded it removes the least recently used data.
258 </para>
259
260 <para>
261 A minute after the start the special process “cache loader” is activated
262 that loads information about previously cached data stored on file system
263 into a cache zone.
264 A load is done in iterations.
265 During one iteration no more than <literal>loader_files</literal> items
266 are loaded (by default, 100).
267 Besides, the duration of one iteration is limited by the
268 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds).
269 A pause is made between iterations, configured by the
270 <literal>loader_sleep</literal> parameter (by default, 50 milliseconds).
255 </para> 271 </para>
256 272
257 </directive> 273 </directive>
258 274
259 275