Advertisement
dak1n1

Tsung - 3.4 million req/sec config

Apr 22nd, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.83 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
  3. <tsung loglevel="notice" version="1.0">
  4.  
  5. <clients>
  6.     <client host="localhost" weight="1" cpu="10" maxusers="40000">
  7.       <ip value="192.168.122.2"/>
  8.     </client>
  9.     <client host="loadnode1" weight="1" cpu="9" maxusers="40000">
  10.       <ip value="192.168.122.2"/>
  11.     </client>
  12.     <client host="loadnode2" weight="1" maxusers="40000" cpu="8">
  13.       <ip value="192.168.122.3"/>
  14.     </client>
  15.     <client host="loadnode3" weight="1" maxusers="40000" cpu="9">
  16.       <ip value="192.168.122.21"/>
  17.     </client>
  18.     <client host="loadnode4" weight="1" maxusers="40000" cpu="9">
  19.       <ip value="192.168.122.11"/>
  20.     </client>
  21.     <client host="loadnode5" weight="1" maxusers="40000" cpu="9">
  22.       <ip value="192.168.122.12"/>
  23.     </client>
  24.     <client host="loadnode6" weight="1" maxusers="40000" cpu="9">
  25.       <ip value="192.168.122.13"/>
  26.     </client>
  27.     <client host="loadnode7" weight="1" maxusers="40000" cpu="9">
  28.       <ip value="192.168.122.14"/>
  29.     </client>
  30.   </clients>
  31.  
  32.   <servers>
  33.     <server host="192.168.122.10" port="80" type="tcp"/>
  34.   </servers>
  35.  
  36.   <load>
  37.    <arrivalphase phase="1" duration="10" unit="minute">
  38.    <users maxnumber="15000" arrivalrate="8" unit="second"/>
  39.   </arrivalphase>
  40.  
  41.    <arrivalphase phase="2" duration="10" unit="minute">
  42.    <users maxnumber="15000" arrivalrate="8" unit="second"/>
  43.   </arrivalphase>
  44.  
  45.    <arrivalphase phase="3" duration="30" unit="minute">
  46.    <users maxnumber="20000" arrivalrate="3" unit="second"/>
  47.   </arrivalphase>
  48.  
  49.  </load>
  50.  
  51.  <sessions>
  52.    <session probability="100" name="ab" type="ts_http">
  53.        <for from="1" to="10000000" var="i">
  54.             <request> <http url="/test.txt" method="GET" version="1.1"/> </request>
  55.       </for>
  56.   </session>
  57.  </sessions>
  58. </tsung>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement