Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

  1. 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
  2. tar zxvf tsung-1.7.0.tar.gz

  3. cd tsung-1.7.0

  4. ./configure

  5. make

  6. 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