Core directives
thread_pool (Core directives)
Defines a named pool for supported file I/O tasks; main context. Requires appropriate build support.
Formal Syntax & Structure
nginx syntaxnginx
thread_pool name threads=number [max_queue=number];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | identifier | Identify the pool used by threaded file I/O. |
| threads | threads=positive integer | Specify the pool worker thread count. |
| max_queue | max_queue=nonnegative integer | Bound pending tasks; default 65536. Overflow fails the task. |
Working Example
Example Snippetnginx
thread_pool files threads=2 max_queue=64;