File: thinks2.xml.in

package info (click to toggle)
tsung 1.8.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,932 kB
  • sloc: erlang: 25,486; javascript: 10,347; sh: 3,109; perl: 1,025; makefile: 624; python: 372
file content (48 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "@prefix@/share/@PACKAGE_NAME@/@DTD@">
<tsung loglevel="notice">

  <clients>
    <client host="localhost" use_controller_vm="true"/>
  </clients>

 <servers>
  <server host="127.0.0.1" port="5432" type="tcp"/>
 </servers>

 <load>
  <arrivalphase phase="1" duration="10" unit="minute">
    <users interarrival="0.5" unit="second"></users>
  </arrivalphase>
  <arrivalphase phase="2" duration="600" unit="second">
    <users interarrival="0.5" unit="minute"></users>
  </arrivalphase>
  <arrivalphase phase="3" duration="6" unit="hour">
    <users interarrival="0.5" unit="hour"></users>
  </arrivalphase>
 </load>

<options>
  <option name="thinktime" value="3" random="true" override="false"/>
</options>

 <sessions>
  <session probability="100" name="pgsql-example" type="ts_pgsql">
    <transaction name="connection">
      <request>
        <pgsql type="connect" database="bench" username="bench" />
      </request>
    </transaction>

    <request>
      <pgsql type="authenticate" password="sesame"/>
    </request>

    <thinktime value="1"/>

    <request><pgsql type="close"></pgsql></request>
    <thinktime/>

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