| | 1 | = Setup for Load tests = |
| | 2 | |
| | 3 | The following needs to be installed for doing the load testing using tsung. |
| | 4 | |
| | 5 | * erlang - Version : R16B01 |
| | 6 | * tsung-1.4.2 |
| | 7 | |
| | 8 | For report generation - |
| | 9 | * zlib-1.2.8 |
| | 10 | * libpng-1.2.8 |
| | 11 | * freetype-2.4.0 |
| | 12 | * gd-2.0.33 |
| | 13 | * gnuplot-4.0.0 |
| | 14 | |
| | 15 | The installation script for installing these is here - |
| | 16 | |
| | 17 | {{{ |
| | 18 | |
| | 19 | #!/bin/sh |
| | 20 | |
| | 21 | # Download erlang source |
| | 22 | wget http://erlang.org/download/otp_src_R16B01.tar.gz |
| | 23 | tar xzf otp_src_R16B01.tar.gz |
| | 24 | cd otp_src_R16B01 |
| | 25 | |
| | 26 | # Install erlang |
| | 27 | ./configure -prefix=/opt/erlang-R16B01 |
| | 28 | make |
| | 29 | |
| | 30 | # Add /opt/erlang-R16B01/bin to path |
| | 31 | # in /etc/profile, add |
| | 32 | echo "export PATH=$PATH:/opt/erlang-R16B01/bin" >> /etc/profile |
| | 33 | |
| | 34 | . /etc/profile |
| | 35 | |
| | 36 | cd .. |
| | 37 | |
| | 38 | # Download tsung. |
| | 39 | wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz |
| | 40 | tar zxf tsung-1.4.2.tar.gz |
| | 41 | cd tsung-1.4.2 |
| | 42 | |
| | 43 | # Install tsung |
| | 44 | ./configure --prefix=/opt/tsung-1.4.2 |
| | 45 | sudo make install |
| | 46 | |
| | 47 | # Add /opt/tsung-1.4.2/bin to path |
| | 48 | # in /etc/profile, add |
| | 49 | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
| | 50 | |
| | 51 | . /etc/profile |
| | 52 | |
| | 53 | sudo cpan Template |
| | 54 | |
| | 55 | cd .. |
| | 56 | |
| | 57 | # install zlib |
| | 58 | wget zlib.net/zlib-1.2.8.tar.gz |
| | 59 | tar xzf zlib-1.2.8.tar.gz |
| | 60 | cd zlib-1.2.8 |
| | 61 | ./configure --prefix=/opt/zlib-1.2.8 |
| | 62 | make test |
| | 63 | sudo make install |
| | 64 | |
| | 65 | cd .. |
| | 66 | |
| | 67 | # install libpng |
| | 68 | wget download.sourceforge.net/libpng/libpng-1.2.8.tar.gz |
| | 69 | tar xzf libpng-1.2.8.tar.gz |
| | 70 | cd libpng-1.2.8/ |
| | 71 | cp scripts/makefile.linux makefile |
| | 72 | make |
| | 73 | make test |
| | 74 | sudo make install |
| | 75 | |
| | 76 | cd .. |
| | 77 | |
| | 78 | # install freetype |
| | 79 | wget download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz |
| | 80 | tar xzf freetype-2.4.0.tar.gz |
| | 81 | cd freetype-2.4.0 |
| | 82 | ./configure --prefix=/opt/freetype-2.4.0 |
| | 83 | make |
| | 84 | sudo make install |
| | 85 | |
| | 86 | cd .. |
| | 87 | |
| | 88 | # install gd for png support of gnuplot. |
| | 89 | wget www12.tucows.com/linux/files/gd-2.0.33.tar.gz |
| | 90 | tar xzf gd-2.0.33 |
| | 91 | cd gd-2.0.33 |
| | 92 | ./configure --prefix=/opt/gd-2.0.33 |
| | 93 | sudo make install |
| | 94 | |
| | 95 | cd .. |
| | 96 | |
| | 97 | # Install gnuplot |
| | 98 | wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.3/gnuplot-4.0.0.tar.gz |
| | 99 | tar xzf gnuplot-4.0.0.tar.gz |
| | 100 | cd gnuplot-4.0.0 |
| | 101 | ./configure --prefix=/opt/gnuplot-4.4.0 |
| | 102 | sudo make install |
| | 103 | |
| | 104 | # Add /opt/gnuplot-4.4.0/bin to path |
| | 105 | # in /etc/profile, add |
| | 106 | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
| | 107 | |
| | 108 | . /etc/profile |
| | 109 | }}} |
| | 110 | |
| | 111 | |
| | 112 | * Note : It is advisable to install the same versions of above tools on all server(s)/clients(s). |