February 2018
Beginner to intermediate
348 pages
9h 40m
English
In order to enable support for thread pools, Nginx must be built with the --with-threads parameter; this functionality doesn't come by default. The first step of the configuration is to define a thread pool with the thread_pool directive, at the root of your configuration file.
Syntax: thread_pool name threads=N [max_queue=Q];
In this syntax, name is the name you wish to give to the thread pool, N is the number of threads that should be spawned, and Q the maximum number of operations allowed in the queue. By default, a thread pool exists with the name default, coming with 32 threads and a maximum queue of 65,536 operations.
In location blocks that require it, simply insert the aio directive and specify the thread ...
Read now
Unlock full access