1、测试环境
内网测试,ab, centos 6, 20核 40线程,nginx
nginx 40个worker process
ab安装
yum install httpd-tools
nginx主要配置
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千多,没有上万,有点遗憾。可能是内网带宽达到了极限。