Google Code Prettify

2016年3月5日 星期六

Distributed Load Testing Tool

Tsung http://tsung.erlang-projects.org/

這一套壓力測式的工具,設定相當方便 也提供相關數據圖表

需在每個 Client Node 安裝 Tsung 與 設定 SSH Authorized 登入,才能順利分散壓力

SSH Authorized 設定範例

  • cd /root
  • ssh-keygen -t rsa
  • cd .ssh
  • cat id_rsa.pub > authorized_keys
  • chmod 600 authorized_keys
  • ssh-copy-id root@ClientNode

Tsung Install

  • yum install erlang gnuplot libtemplate-perl liberation-sans-fonts perl-Template-Toolkit
  • wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz
  • tar zxvf tsung-1.6.0.tar.gz
  • cd tsung-1.6.0
  • ./configure && make && make install

Tsung Load Test Commond

  • tsung -k -f test.xml start

Tsung Load Test Report Site

  • http://testsite:8091/es/ts_web:status

沒有留言: