Skip to content

Instantly share code, notes, and snippets.

@coolmenu
Forked from huberflores/huberflores_example.xml
Created November 18, 2016 09:13
Show Gist options
  • Save coolmenu/9626436053591c236f4e87c26e39517f to your computer and use it in GitHub Desktop.
Save coolmenu/9626436053591c236f4e87c26e39517f to your computer and use it in GitHub Desktop.
Tsung Configuration File
<!--
author Huber Flores
-->
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<!-- Client side setup -->
<clients>
<client host="tsung-node1" weight="1" maxusers="500">
<ip value="172.17.x.x"></ip>
</client>
<client host="tsung-node2" weight="1" maxusers="500">
<ip value="172.17.x.x"></ip>
</client>
<client host="tsung-node3" weight="1" maxusers="500">
<ip value="172.17.x.x"></ip>
</client>
</clients>
<!-- Server side setup -->
<servers>
<server host="172.17.x.x" port="80" type="tcp"></server>
</servers>
<!-- to start os monitoring (cpu, network, memory). Use an erlang
agent on the remote machine or SNMP. erlang is the default -->
<monitoring>
<monitor host="myserver" type="snmp"></monitor>
</monitoring>
<load>
<!-- several arrival phases can be set: for each phase, you can set
the mean inter-arrival time between new clients and the phase
duration -->
<arrivalphase phase="1" duration="2" unit="second">
<users interarrival="0.00125" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_http" name="user_agent">
<user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21</user_agent>
<user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
</option>
</options>
<!-- start a session for a http user. the probability is the
frequency of this type os session. The sum of all session's
probabilities must be 100 -->
<sessions>
<session name='zompopo' probability='100' type='ts_http'>
<request><http url='/Uploader/uimage' version='1.1' contents_from_file='/root/.tsung/tsung_recorder20110713-15:50-1.bin' content_type='multipart/form-data; boundary=---------------------------12060338813221352851214549942' method='POST'></http></request>
</session>
</sessions>
</tsung>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment