Tsung нагрузочное тестирование

apt-get install tsung

ln -s /usr/share /usr/lib/share

ln -s /usr/lib/x86_64-linux-gnu/tsung /usr/lib/tsung

настройка файла конфигурации

nano /root/.tsung/tsung.xml

<?xml version=»1.0″?>
<!DOCTYPE tsung SYSTEM «/usr/share/tsung/tsung-1.0.dtd»>
<tsung loglevel=»debug» version=»1.0″>
<clients>
<client host=»localhost» use_controller_vm=»true» maxusers=»164000″ />
</clients>

<servers>
<server host=»wiki.research.ru.com» port=»83″ type=»tcp» />
</servers>

<load>
<arrivalphase phase=»1″ duration=»60″ unit=»second»>
<users maxnumber=»164000″ arrivalrate=»3500″ unit=»second» />
</arrivalphase>
</load>
<sessions>
<session name=’rec20181218-1846′ probability=’100′ type=’ts_http’>
<request><http url=’http://wiki.research.ru.com:83/?cat=6′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’2’/>

<request><http url=’/?p=247′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’2’/>

<request><http url=’/?cat=8′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’1’/>

<request><http url=’/?p=213′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’4’/>

<request><http url=’/?cat=8′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’2’/>

<request><http url=’/?p=195′ version=’1.1′ method=’GET’></http></request>
<request><http url=’/wp-content/uploads/2018/12/IMG_20181208_180821.jpg’ version=’1.1′ method=’GET’></http></request>
<request><http url=’/wp-content/uploads/2018/12/IMG_20181208_180831.jpg’ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’5’/>

<request><http url=’/?cat=8′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’2’/>

<request><http url=’/?p=190′ version=’1.1′ method=’GET’></http></request>
<request><http url=’/wp-content/uploads/2018/12/IMG_20181208_150553.jpg’ version=’1.1′ method=’GET’></http></request>
<request><http url=’/wp-content/uploads/2018/12/IMG_20181208_150558.jpg’ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’3’/>

<request><http url=’/?cat=8′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’2’/>

<request><http url=’/?cat=2′ version=’1.1′ method=’GET’></http></request>

<thinktime random=’true’ value=’1’/>

<request><http url=’/?p=174′ version=’1.1′ method=’GET’></http></request>

</session>
</sessions>
</tsung>

Чтобы создать нормальную сессию надо после установки указать на своем браузере прокси сервер=»тестирующий сервер(gateway.server)» port=»8090″

после этого прописать команду

tsung-recorder start

закончить тестирование командой

tsung-recorder stop 

и забрать из логов свою сессию

 

7 комментариев на Tsung нагрузочное тестирование

  1. LuckyPH Online Casino Philippines: Register & Login to Play Top LuckyPH Slots. Get the LuckyPH App Download for Premium Gaming and Big Wins! Join LuckyPH Online Casino Philippines! Access your LuckyPH login or LuckyPH register to play top LuckyPH slots. Get the LuckyPH app download for big wins today! visit: luckyph

Добавить комментарий для JacobZip Отменить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *