location /test {
proxy_http_version 1.1;
proxy_set_header Connection Keep-Alive;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_pass
http://127.0.0.1:8001/test1;
}
location /test1 {
echo "abc";
}
用ab -n 10000 -c 100 "127.0.0.1:8001/test" QPS是12K
ab -n 10000 -c 100 "127.0.0.1:8001/test" QPS是30K
差别好大,这是正常现象吗