Syntax: | thread_pool
|
---|---|
Default: | thread_pool default threads=32 max_queue=65536; |
Context: | main |
This directive appeared in version 1.7.11.
Defines named thread pools used for multi-threaded reading and sending of files without blocking worker processes.
The threads
parameter defines the number of threads in the pool.
In the event that all threads in the pool are busy, a new task will wait in the queue. The max_queue
parameter limits the number of tasks allowed to be waiting in the queue. By default, up to 65536 tasks can wait in the queue. When the queue overflows, the task is completed with an error.
Please login to continue.