We now have about 300,000 users. How do I test the nginx server's capabilities? How do I use webbench to test it?
習慣沉默2017-05-16 17:15:23
0
2
507
1 The server is nginx 2 Does the test take parameters? How to do post testing with webBenche? 3 How to use webbench to test whether the interface is real or not? Some interfaces require parameters to be passed. Do I need to test with parameters?
The total user base is 30W. I speculate that the average TPS does not exceed 10, so NGINX has no performance issues. The actual stress test tests the performance of the backend.
HTTP’s maximum TPS and concurrency tests can be tested using ab and wrk. If you need to post, you can use ab -p ./body.txt -T "application/x-www-form-urlencoded"
Parameters can be written directly after the url, such as ab -n 10 -c 1 http://example.com/cgi?name=value
The total user base is 30W. I speculate that the average TPS does not exceed 10, so NGINX has no performance issues. The actual stress test tests the performance of the backend.
HTTP’s maximum TPS and concurrency tests can be tested using ab and wrk. If you need to post, you can use
ab -p ./body.txt -T "application/x-www-form-urlencoded"
Parameters can be written directly after the url, such as
ab -n 10 -c 1 http://example.com/cgi?name=value
ab/siege