Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_fastcgi_module.xml @ 1810:bc6341aaa832
Added cache manager parameters to proxy_cache path and friends.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Fri, 07 Oct 2016 20:35:11 +0300 |
parents | 621d0c682113 |
children | 35ec213c16cf |
comparison
equal
deleted
inserted
replaced
1809:2245f2827e2f | 1810:bc6341aaa832 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_fastcgi_module" | 10 <module name="Module ngx_http_fastcgi_module" |
11 link="/en/docs/http/ngx_http_fastcgi_module.html" | 11 link="/en/docs/http/ngx_http_fastcgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="37"> | 13 rev="38"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_fastcgi_module</literal> module allows passing | 18 The <literal>ngx_http_fastcgi_module</literal> module allows passing |
340 [<literal>levels</literal>=<value>levels</value>] | 340 [<literal>levels</literal>=<value>levels</value>] |
341 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] | 341 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] |
342 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | 342 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> |
343 [<literal>inactive</literal>=<value>time</value>] | 343 [<literal>inactive</literal>=<value>time</value>] |
344 [<literal>max_size</literal>=<value>size</value>] | 344 [<literal>max_size</literal>=<value>size</value>] |
345 [<literal>manager_files</literal>=<value>number</value>] | |
346 [<literal>manager_sleep</literal>=<value>time</value>] | |
347 [<literal>manager_threshold</literal>=<value>time</value>] | |
345 [<literal>loader_files</literal>=<value>number</value>] | 348 [<literal>loader_files</literal>=<value>number</value>] |
346 [<literal>loader_sleep</literal>=<value>time</value>] | 349 [<literal>loader_sleep</literal>=<value>time</value>] |
347 [<literal>loader_threshold</literal>=<value>time</value>] | 350 [<literal>loader_threshold</literal>=<value>time</value>] |
348 [<literal>purger</literal>=<literal>on</literal>|<literal>off</literal>] | 351 [<literal>purger</literal>=<literal>on</literal>|<literal>off</literal>] |
349 [<literal>purger_files</literal>=<value>number</value>] | 352 [<literal>purger_files</literal>=<value>number</value>] |
405 | 408 |
406 <para> | 409 <para> |
407 The special “cache manager” process monitors the maximum cache size set | 410 The special “cache manager” process monitors the maximum cache size set |
408 by the <literal>max_size</literal> parameter. | 411 by the <literal>max_size</literal> parameter. |
409 When this size is exceeded, it removes the least recently used data. | 412 When this size is exceeded, it removes the least recently used data. |
413 The data is removed in iterations configured by | |
414 <literal>manager_files</literal>, | |
415 <literal>manager_threshold</literal>, and | |
416 <literal>manager_sleep</literal> parameters (1.11.5). | |
417 During one iteration no more than <literal>manager_files</literal> items | |
418 are deleted ( by default, 100). | |
419 The duration of one iteration is limited by the | |
420 <literal>manager_threshold</literal> parameter (by default, 200 milliseconds). | |
421 Between iterations, a pause configured by the <literal>manager_sleep</literal> | |
422 parameter (by default, 50 milliseconds) is made. | |
410 </para> | 423 </para> |
411 | 424 |
412 <para> | 425 <para> |
413 A minute after the start the special “cache loader” process is activated. | 426 A minute after the start the special “cache loader” process is activated. |
414 It loads information about previously cached data stored on file system | 427 It loads information about previously cached data stored on file system |
415 into a cache zone. | 428 into a cache zone. |
416 The loading is done in iterations. | 429 The loading is also done in iterations. |
417 During one iteration no more than <literal>loader_files</literal> items | 430 During one iteration no more than <literal>loader_files</literal> items |
418 are loaded (by default, 100). | 431 are loaded (by default, 100). |
419 Besides, the duration of one iteration is limited by the | 432 Besides, the duration of one iteration is limited by the |
420 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds). | 433 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds). |
421 Between iterations, a pause configured by the <literal>loader_sleep</literal> | 434 Between iterations, a pause configured by the <literal>loader_sleep</literal> |