OpenSRP load testing uses the tool Tsung.
Tsung is a heavy duty, load-testing tool that is used to benchmark the performance of servers and applications.
...
Install Erlang and depencies sudo apt-get install erlang gnuplot libtemplate-perl
Install Tsung
- Download the latest version from http://tsung.erlang-projects.org/dist/. OpenSRP uses the current version 1.7.0. Run
wget http://tsung.erlang-projects.org/dist/tsung-1.7.0.tar.gz
tar zxvf tsung-1.7.0.tar.gz
cd tsung-1.7.0
./configure
make
make install
...
tsung -f opensrp.xml start
You can get the opensrp configuration file from https://github.com/OpenSRP/pathopensrp-zambia-etlscripts/blob/load-testingmaster/load-testing/opensrp.xml
The repositories has other configuration file
...
Use the Tsung reporting tool to extract statistics and metrics from the the load tests
Go to log directory. This usually output from the terminal when running the load test
cd ~/.tsung/log/20180503-1847/
Generate graphical Report:
/usr/lib/tsung/bin/tsung_stats.pl
Open report in Firefox browser:
firefox report.html