$ ./nginx.exe -t
nginx: [emerg] "thread_pool" directive is not allowed here in /home/nginx197/conf/nginx.conf:36
nginx: configuration file /home/nginx197/conf/nginx.conf test failed
./configure --prefix=/home/nginx197 --with-cc-opt=-DFD_SETSIZE=1024 --with-threads --add-module=../ngx_devel_kit --add-module=../lua-nginx-module
worker_processes 1;
error_log logs/error.log info;
events
{
worker_connections 63;
}
http
{
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
keepalive_timeout 65;
proxy_cache_path /home/nginx197/dm/disk1 levels=1:2 keys_zone=cache_1:256m max_size=2G use_temp_path=off;
proxy_cache_path /home/nginx197/dm/disk2 levels=1:2 keys_zone=cache_2:256m max_size=2G use_temp_path=off;
proxy_cache_path /home/nginx197/dm/disk3 levels=1:2 keys_zone=cache_3:256m max_size=2G use_temp_path=off;
server
{
# listen 80 reuseport;
listen 80;
server_name localhost;
thread_pool pool_1 threads=32 max_queue=65536;
thread_pool pool_2 threads=32 max_queue=65536;
thread_pool pool_3 threads=32 max_queue=65536;
split_clients $request_uri $disk
{
33.3% 1;
33.3% 2;
* 3;
}
location /
{
proxy_pass $scheme://$host$request_uri;
proxy_set_header Host $http_host;
proxy_cache_key $request_uri;
proxy_cache cache_$disk;
aio threads=pool_$disk;
sendfile on;
}
}