wiki:DeveloperGuidelines/Testing/Load/Setup

Version 1 (modified by somayjain, 11 years ago) ( diff )

--

Setup for Load tests

The following needs to be installed for doing the load testing using tsung.

  • erlang - Version : R16B01
  • tsung-1.4.2

For report generation -

  • zlib-1.2.8
  • libpng-1.2.8
  • freetype-2.4.0
  • gd-2.0.33
  • gnuplot-4.0.0

The installation script for installing these is here -

#!/bin/sh

# Download erlang source
wget http://erlang.org/download/otp_src_R16B01.tar.gz
tar xzf otp_src_R16B01.tar.gz
cd otp_src_R16B01

# Install erlang
./configure -prefix=/opt/erlang-R16B01
make

# Add /opt/erlang-R16B01/bin to path
# in /etc/profile, add 
echo "export PATH=$PATH:/opt/erlang-R16B01/bin" >> /etc/profile

. /etc/profile

cd ..

# Download tsung.
wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz
tar zxf tsung-1.4.2.tar.gz 
cd tsung-1.4.2

# Install tsung
./configure --prefix=/opt/tsung-1.4.2
sudo make install

# Add /opt/tsung-1.4.2/bin to path
# in /etc/profile, add 
echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile

. /etc/profile

sudo cpan Template

cd ..

# install zlib
wget zlib.net/zlib-1.2.8.tar.gz
tar xzf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure --prefix=/opt/zlib-1.2.8
make test
sudo make install

cd ..

# install libpng
wget download.sourceforge.net/libpng/libpng-1.2.8.tar.gz
tar xzf libpng-1.2.8.tar.gz 
cd libpng-1.2.8/
cp scripts/makefile.linux makefile
make
make test
sudo make install

cd ..

# install freetype
wget download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz
tar xzf freetype-2.4.0.tar.gz
cd freetype-2.4.0
./configure --prefix=/opt/freetype-2.4.0
make
sudo make install

cd ..

# install gd for png support of gnuplot.
wget www12.tucows.com/linux/files/gd-2.0.33.tar.gz
tar xzf gd-2.0.33
cd gd-2.0.33
./configure --prefix=/opt/gd-2.0.33
sudo make install

cd ..

# Install gnuplot
wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.3/gnuplot-4.0.0.tar.gz
tar xzf gnuplot-4.0.0.tar.gz
cd gnuplot-4.0.0
./configure --prefix=/opt/gnuplot-4.4.0
sudo make install

# Add /opt/gnuplot-4.4.0/bin to path
# in /etc/profile, add 
echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile

. /etc/profile
  • Note : It is advisable to install the same versions of above tools on all server(s)/clients(s).
Note: See TracWiki for help on using the wiki.