Skip to content

Instantly share code, notes, and snippets.

@zhangcheng
Forked from huberflores/tsungconf.as
Last active August 29, 2015 14:01
Show Gist options
  • Save zhangcheng/dbc878fb94860da02995 to your computer and use it in GitHub Desktop.
Save zhangcheng/dbc878fb94860da02995 to your computer and use it in GitHub Desktop.

Revisions

  1. zhangcheng revised this gist May 21, 2014. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions tsungconf.as
    Original file line number Diff line number Diff line change
    @@ -15,9 +15,8 @@ $ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-tem
    $ tar -xvf tsung-1.3.3.tar.gz
    $ cd tsung-1.3.3

    # You need erlang-dev and erlang-src to compile tsung on ubuntu
    $ apt-get install erlang-dev
    $ apt-get install erlang-src
    # You need erlang-dev, erlang-nox and erlang-src to compile tsung on ubuntu
    $ apt-get install erlang-dev erlang-nox erlang-src

    $./configure && make && sudo make install

  2. @huberflores huberflores revised this gist Feb 21, 2013. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions tsungconf.as
    Original file line number Diff line number Diff line change
    @@ -2,20 +2,20 @@
    * author Huber Flores
    */

    #Install on each Node
    # Install on each Node

    $ su

    #Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
    # Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
    $ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl

    #download Tsung
    # download Tsung
    #http://tsung.erlang-projects.org/dist/

    $ tar -xvf tsung-1.3.3.tar.gz
    $ cd tsung-1.3.3

    #You need erlang-dev and erlang-src to compile tsung on ubuntu
    # You need erlang-dev and erlang-src to compile tsung on ubuntu
    $ apt-get install erlang-dev
    $ apt-get install erlang-src

    @@ -24,19 +24,19 @@ $./configure && make && sudo make install
    #directory
    /usr/local/share/tsung/

    #create the .tsung/ directory in ~/.tsung (/home/huber/.tsung)
    # create the .tsung/ directory in ~/.tsung (/home/huber/.tsung)
    $ mkdir ./tsung


    #create the configuration file and executed
    # create the configuration file and executed

    $ tsung -f huberflores_example.xml start
    #Configuration file is below this script

    $ cd .tsung/log/20110614-21:58/


    #Configure Each Node Communication
    # Configure Each Node Communication

    Change name to the host
    $ nano /etc/hosts
    @@ -46,7 +46,7 @@ $ nano /etc/hosts
    172.17.x.x tsung3


    #alternative
    # alternative
    $ nano /etc/hostname
    $ nano /etc/resolv.conf

    @@ -68,9 +68,9 @@ $ ssh tsung1
    $ ssh tsung2
    $ ssh tsung3

    #Each connection must be perfomed without password
    # Each connection must be perfomed without password

    #If this error emerged, then repeat "#Configure Each Node Communication" section.
    # If this error emerged, then repeat "#Configure Each Node Communication" section.

    Host key verification failed
    Host key verification failed Host key verification failed
  3. @huberflores huberflores revised this gist Feb 8, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions tsungconf.as
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    /*
    * author Huber Flores
    */

    #Install on each Node

    $ su
  4. @huberflores huberflores renamed this gist Feb 8, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @huberflores huberflores created this gist May 29, 2012.
    75 changes: 75 additions & 0 deletions gistfile1.as
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    #Install on each Node

    $ su

    #Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
    $ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl

    #download Tsung
    #http://tsung.erlang-projects.org/dist/

    $ tar -xvf tsung-1.3.3.tar.gz
    $ cd tsung-1.3.3

    #You need erlang-dev and erlang-src to compile tsung on ubuntu
    $ apt-get install erlang-dev
    $ apt-get install erlang-src

    $./configure && make && sudo make install

    #directory
    /usr/local/share/tsung/

    #create the .tsung/ directory in ~/.tsung (/home/huber/.tsung)
    $ mkdir ./tsung


    #create the configuration file and executed

    $ tsung -f huberflores_example.xml start
    #Configuration file is below this script

    $ cd .tsung/log/20110614-21:58/


    #Configure Each Node Communication

    Change name to the host
    $ nano /etc/hosts

    172.17.x.x tsung1
    172.17.x.x tsung2
    172.17.x.x tsung3


    #alternative
    $ nano /etc/hostname
    $ nano /etc/resolv.conf

    local node
    $ cd /root/.ssh

    Create keys in each node
    $ ssh-keygen -t dsa
    $ chmod 600 .ssh/id_dsa

    install the key in the remote node
    $ cat id_dsa.pub >> /root/.ssh/authorized_keys

    connecting ssh without a password
    $ ssh-agent sh -c 'ssh-add < /dev/null && bash'

    #try each node
    $ ssh tsung1
    $ ssh tsung2
    $ ssh tsung3

    #Each connection must be perfomed without password

    #If this error emerged, then repeat "#Configure Each Node Communication" section.

    Host key verification failed
    Host key verification failed Host key verification failed


    This is because tsung search by host name (not ip address).