id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,uname,nginx_version 1603,ngx_http_limit_req_module 模块限制不准确,huifeidexingyuner@…,,"limit_req_zone $binary_remote_addr zone=qps1:1m rate=1000r/s; location / { limit_req zone=qps1 burst=1000; root /home/soft/www/; index index.html index.htm index.php; try_files $uri $uri/ =404; } 这样配置,访问一个首页为31个请求的页面,查看后台日志如下: 2018/08/02 11:18:47 [warn] 52328#0: *4 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/styles/ddsmoothmenu/ddsmoothmenu-v.css HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *3 delaying request, excess: 2.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/styles/ddsmoothmenu/ddsmoothmenu.css HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *4 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/images/pdf-icon-48-48.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52327#0: *1 delaying request, excess: 2.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/images/new-icon-48-48.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *4 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/images/question-mark-40-61.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *6 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/images/installation-icon-48-48.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *5 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/images/help-icon-48-48.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:47 [warn] 52328#0: *3 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/javascript/jQuery/jquery.balloon.js HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/"" 2018/08/02 11:18:48 [warn] 52328#0: *6 delaying request, excess: 1.000, by zone ""qps1"", client: 10.50.10.88, server: , request: ""GET /mutillidae/javascript/jQuery/colorbox/images/controls.png HTTP/1.1"", host: ""10.50.10.87"", referrer: ""http://10.50.10.87/mutillidae/javascript/jQuery/colorbox/colorbox.css"" 说明nginx延迟了部分请求,太不准确了,理论上1秒钟并发只有31而已。",enhancement,closed,critical,,other,1.13.x,invalid,,,,1.13.6