/benchmarks/scenarii/templates/base.erb
Ruby HTML | 43 lines | 30 code | 4 blank | 9 comment | 0 complexity | 3d95e087550420da74cee3019361d063 MD5 | raw file
- <?xml version="1.0"?>
- <!DOCTYPE tsung SYSTEM "TSUNG_SHARE_PATH/share/tsung/tsung-1.0.dtd" [] >
- <!--
- Use the following root element if you want to debug the scenario.
- This should be uncommented only for developement purpose.
- <tsung loglevel="debug" dumptraffic="true" version="1.0">
- -->
- <tsung>
- <!-- Client side setup -->
- <clients>
- <client host="localhost" use_controller_vm="true" maxusers="10000" />
- </clients>
- <!-- Server side setup -->
- <servers>
- <server host="localhost" port="5280" type="tcp" />
- </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="localhost" type="munin"></monitor>
- </monitoring>
- <load duration="<%= load['duration'] %>" unit="<%= load['unit'] %>">
- <% arrivals.each_with_index do |arrival, index| %>
- <arrivalphase phase="<%= index + 1 %>" duration="<%= arrival['duration'] %>" unit="minute">
- <users interarrival="<%= arrival['duration'] * 60.0 / arrival['users'] %>" unit="second"></users>
- </arrivalphase>
- <% end %>
- </load>
- <options>
- <option name="file_server" id="users" value="users.csv"/>
- </options>
- <sessions>
- <% sessions.each_with_index do |session, index| %>
- <session name='<%= session['name'] %>' probability='<%= session['probability'] %>' type='ts_http'>
- <%= render_session(session) %>
- </session>
- <% end %>
- </sessions>
- </tsung>