LoginSignup
0
0

More than 5 years have passed since last update.

負荷テストシナリオ設定

Posted at

負荷テストシナリオ設定

記述方法まとめ
sample

?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/home/user/work/tsung/tsung-1.0.dtd">

<tsung loglevel="notice" version="1.0">
  <clients>
    <client host="localhost" weight="1" cpu="8" maxusers="30000"/>
  </clients>
<servers>
  <server host="gsc-1611782495.us-east-1.elb.amazonaws.com" port="80" type="tcp"></server>
</servers>

  <load>

   <arrivalphase phase="1" duration="2" unit="minute">
     <users maxnumber="10" arrivalrate="2" unit="minute"></users>
   </arrivalphase>
  </load>

  <options>
   <option type="ts_http" name="user_agent">
    <user_agent probability="100">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>

 <sessions>
  <session name="stress-test" probability="100" type="ts_http">

    <request subst="true">
      <http url="/" method="GET" version="1.1"></http>
    </request>
  </session>
 </sessions>
</tsung>
~

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0