<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.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="600" unit="second">
    <users arrivalrate="2" unit="second"></users>
  </arrivalphase>
  <arrivalphase phase="2" duration="600" unit="second">
    <users arrivalrate="2" unit="minute"></users>
  </arrivalphase>
  <arrivalphase phase="3" duration="6" unit="hour">
    <users arrivalrate="2" unit="hour"></users>
  </arrivalphase>
 </load>

<options>
  <option name="thinktime" value="2" random="false" override="true"/>
</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="200"/>

    <request><pgsql type="close"></pgsql></request>
    <thinktime min="2" max="7"/>

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