Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_scgi_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_scgi_module" | 10 <module name="Module ngx_http_scgi_module" |
11 link="/en/docs/http/ngx_http_scgi_module.html" | 11 link="/en/docs/http/ngx_http_scgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="26"> | 13 rev="27"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_scgi_module</literal> module allows passing | 18 The <literal>ngx_http_scgi_module</literal> module allows passing |
331 [<literal>levels</literal>=<value>levels</value>] | 331 [<literal>levels</literal>=<value>levels</value>] |
332 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] | 332 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] |
333 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | 333 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> |
334 [<literal>inactive</literal>=<value>time</value>] | 334 [<literal>inactive</literal>=<value>time</value>] |
335 [<literal>max_size</literal>=<value>size</value>] | 335 [<literal>max_size</literal>=<value>size</value>] |
336 [<literal>manager_files</literal>=<value>number</value>] | |
337 [<literal>manager_sleep</literal>=<value>time</value>] | |
338 [<literal>manager_threshold</literal>=<value>time</value>] | |
336 [<literal>loader_files</literal>=<value>number</value>] | 339 [<literal>loader_files</literal>=<value>number</value>] |
337 [<literal>loader_sleep</literal>=<value>time</value>] | 340 [<literal>loader_sleep</literal>=<value>time</value>] |
338 [<literal>loader_threshold</literal>=<value>time</value>] | 341 [<literal>loader_threshold</literal>=<value>time</value>] |
339 [<literal>purger</literal>=<literal>on</literal>|<literal>off</literal>] | 342 [<literal>purger</literal>=<literal>on</literal>|<literal>off</literal>] |
340 [<literal>purger_files</literal>=<value>number</value>] | 343 [<literal>purger_files</literal>=<value>number</value>] |
396 | 399 |
397 <para> | 400 <para> |
398 The special “cache manager” process monitors the maximum cache size set | 401 The special “cache manager” process monitors the maximum cache size set |
399 by the <literal>max_size</literal> parameter. | 402 by the <literal>max_size</literal> parameter. |
400 When this size is exceeded, it removes the least recently used data. | 403 When this size is exceeded, it removes the least recently used data. |
404 The data is removed in iterations configured by | |
405 <literal>manager_files</literal>, | |
406 <literal>manager_threshold</literal>, and | |
407 <literal>manager_sleep</literal> parameters (1.11.5). | |
408 During one iteration no more than <literal>manager_files</literal> items | |
409 are deleted ( by default, 100). | |
410 The duration of one iteration is limited by the | |
411 <literal>manager_threshold</literal> parameter (by default, 200 milliseconds). | |
412 Between iterations, a pause configured by the <literal>manager_sleep</literal> | |
413 parameter (by default, 50 milliseconds) is made. | |
401 </para> | 414 </para> |
402 | 415 |
403 <para> | 416 <para> |
404 A minute after the start the special “cache loader” process is activated. | 417 A minute after the start the special “cache loader” process is activated. |
405 It loads information about previously cached data stored on file system | 418 It loads information about previously cached data stored on file system |
406 into a cache zone. | 419 into a cache zone. |
407 The loading is done in iterations. | 420 The loading is also done in iterations. |
408 During one iteration no more than <literal>loader_files</literal> items | 421 During one iteration no more than <literal>loader_files</literal> items |
409 are loaded (by default, 100). | 422 are loaded (by default, 100). |
410 Besides, the duration of one iteration is limited by the | 423 Besides, the duration of one iteration is limited by the |
411 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds). | 424 <literal>loader_threshold</literal> parameter (by default, 200 milliseconds). |
412 Between iterations, a pause configured by the <literal>loader_sleep</literal> | 425 Between iterations, a pause configured by the <literal>loader_sleep</literal> |