Mercurial > hg > nginx-site
comparison xml/en/docs/ngx_core_module.xml @ 1436:2333e08e277d
Documented thread pools.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 18 Mar 2015 19:01:42 +0300 |
parents | 4e89518a5999 |
children | c79501e16e26 |
comparison
equal
deleted
inserted
replaced
1435:54ed6b72ad3b | 1436:2333e08e277d |
---|---|
395 </para> | 395 </para> |
396 | 396 |
397 </directive> | 397 </directive> |
398 | 398 |
399 | 399 |
400 <directive name="thread_pool"> | |
401 <syntax> | |
402 <value>name</value> | |
403 <literal>threads</literal>=<value>number</value> | |
404 [<literal>max_queue</literal>=<value>number</value>]</syntax> | |
405 <default>default threads=32 max_queue=65536</default> | |
406 <context>main</context> | |
407 <appeared-in>1.7.11</appeared-in> | |
408 | |
409 <para> | |
410 Defines named thread pools | |
411 used for multi-threaded reading and sending of files | |
412 <link doc="http/ngx_http_core_module.xml" id="aio">without blocking</link> | |
413 worker processes. | |
414 </para> | |
415 | |
416 <para> | |
417 The <literal>threads</literal> parameter | |
418 defines the number of threads in the pool. | |
419 </para> | |
420 | |
421 <para> | |
422 In the event that all threads in the pool are busy, | |
423 a new task will wait in the queue. | |
424 The <literal>max_queue</literal> parameter limits the number | |
425 of tasks allowed to be waiting in the queue. | |
426 By default, up to 65536 tasks can wait in the queue. | |
427 When the queue overflows, the task is completed with an error. | |
428 </para> | |
429 | |
430 </directive> | |
431 | |
432 | |
400 <directive name="timer_resolution"> | 433 <directive name="timer_resolution"> |
401 <syntax><value>interval</value></syntax> | 434 <syntax><value>interval</value></syntax> |
402 <default/> | 435 <default/> |
403 <context>main</context> | 436 <context>main</context> |
404 | 437 |