1、测试环境
内网测试,ab, centos 6, 20核 40线程,nginx
nginx 40个worker process
ab安装
yum install httpd-toolsnginx主要配置
worker_processes auto;
pid /run/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}2、测试结果

网卡监控

结论
QPS:9千多,没有上万,有点遗憾。可能是内网带宽达到了极限。
版权声明:本文为luoqinglong850102原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。