Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_proxy_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 | f8652d663b62 |
comparison
equal
deleted
inserted
replaced
507:d00a4f9b1c5d | 508:5e332fafd228 |
---|---|
246 <syntax> | 246 <syntax> |
247 <value>path</value> | 247 <value>path</value> |
248 [<literal>levels</literal>=<value>levels</value>] | 248 [<literal>levels</literal>=<value>levels</value>] |
249 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | 249 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> |
250 [<literal>inactive</literal>=<value>time</value>] | 250 [<literal>inactive</literal>=<value>time</value>] |
251 [<literal>max_size</literal>=<value>size</value>]</syntax> | 251 [<literal>max_size</literal>=<value>size</value>] |
252 [<literal>loader_files</literal>=<value>number</value>] | |
253 [<literal>loader_sleep</literal>=<value>time</value>] | |
254 [<literal>loader_threshold</literal>=<value>time</value>]</syntax> | |
252 <default/> | 255 <default/> |
253 <context>http</context> | 256 <context>http</context> |
254 | 257 |
255 <para> | 258 <para> |
256 Sets path and other parameters of a cache. | 259 Sets path and other parameters of a cache. |
291 | 294 |
292 <para> | 295 <para> |
293 The special process “cache manager” monitors the maximum cache size set | 296 The special process “cache manager” monitors the maximum cache size set |
294 by the <literal>max_size</literal> parameter; | 297 by the <literal>max_size</literal> parameter; |
295 when this size is exceeded it removes the least recently used data. | 298 when this size is exceeded it removes the least recently used data. |
299 </para> | |
300 | |
301 <para> | |
302 A minute after the start the special process “cache loader” is activated | |
303 that loads information about previously cached data stored on file system | |
304 into a cache zone. | |
305 A load is done in iterations. | |
306 During one iteration no more than <literal>loader_files</literal> items | |
307 are loaded (by default, 100). | |
308 Besides, the duration of one iteration is limited by the | |
309 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds). | |
310 A pause is made between iterations, configured by the | |
311 <literal>loader_sleep</literal> parameter (by default, 50 milliseconds). | |
296 </para> | 312 </para> |
297 | 313 |
298 </directive> | 314 </directive> |
299 | 315 |
300 | 316 |