Benchmark Webservers

1 minute read

Benchmark Testing Script

介紹使用 Tool + Script 讓測試變得有效率

AB server:

 - conf/
 - archive/ 

Which will test ab concurrent (1,10,100) + (hello.php,static.html,wordpress) + (lsws,ols,apache,nginx) total 3*3*4=36 combination.

Web server: IP: $DUT_IP Switch 4 type of web servers

  • Switch 4 types of webserver’s cache
  • Monitor server: IP: $Monitor_IP:3000 Grafana monitor tool + Prometheus Which can collect and show CPU, Memory, Load, Disak IO, Network.. How to use: Want to test all servers and files, then just run ./ If you only want to test 1 server, then run ./ Process shows like this At the end of the testing, log will shows like this: Copy archive/1519679350 to /var/www/html See result here http://$AB_IP/1519679350 Copy the URL and you will see three results of images Click one of the folder, e.g. hello.php Click one of the results, e.g. compare_10.png You may also want to take a look if there is any “Failed requests” and need to be fixed. If you test with single server, e.g. ./single ols, you may see 1 server with three concurrent result image
Monitor tool:
Then you will see the last 5 mins server load + page update every 5s 
Follow the steps If you need to save the load image
Click Share dashboard
Click Snapshot
Click Local Snapshot
Then you will get an url, e.g. http://$Monitor_:3000/dashboard/snapshot/1j4am1dFMYp0RlIaeWRSxazCDnSpcwln

How to generate the chart 1. Tool: gnuplot 2. Need config file to collect the number Refer: How to setup Grafana

Leave a comment