Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > ca66b76e2240674c05aaf276e07079a2 > files > 18

flood-1.1-3.r719568.3mdv2010.1.x86_64.rpm

<?xml version="1.0" standalone="no"?>
<!DOCTYPE flood SYSTEM "flood.dtd">
<!-- Hi, I'm a flood config file.  -->
<flood configversion="1">
  <!-- A urllist describes which hosts and which methods we want to hit. -->
  <urllist>
    <name>Test Hosts</name>
    <description>A bunch of hosts we want to hit</description>
    <url method="POST" payload="version=2&amp;keyword=foo&amp;results=20&amp;what=apr.apache.org" predelay="1" predelayprecision="5">http://search.apache.org/index.cgi</url>
    <url method="HEAD" postdelay="2" postdelayprecision="2">http://www.apache.org/</url>
    <url method="GET" predelay="1" postdelay="1">http://dev.apache.org/</url>
    <url method="POST" payload="version=2&amp;keyword=foo&amp;results=20&amp;what=apr.apache.org">http://search.apache.org/index.cgi</url>
    <url method="POST" payloadparam="random" payloadparamcount="1" payloadtemplate="version=2&amp;keyword=foo$$&amp;results=20&amp;what=apr.apache.org">http://search.apache.org/index.cgi</url>
    <url method="HEAD">http://www.apache.org/</url>
    <url method="GET">http://dev.apache.org/</url>
    <url>http://apr.apache.org/</url>
  </urllist>

  <!-- The profile describes how we will hit the urllists. 
       Round robin runs all of the URLs in the urllist in order once. -->
  <profile>
    <name>RoundRobinProfile</name>
    <description>Round Robin Configuration</description>

    <useurllist>Test Hosts</useurllist>

    <!-- Profile Events -->
    <profile_init>round_robin_profile_init</profile_init>
    <get_next_url>round_robin_get_next_url</get_next_url>
    <create_req>round_robin_create_req</create_req>
    <loop_condition>round_robin_loop_condition</loop_condition>
    <profile_destroy>round_robin_profile_destroy</profile_destroy>

    <!-- Socket Events -->
    <!-- default socket_init -->
    <!-- default begin_conn -->
    <!-- default send_req -->
    <!-- default recv_resp -->
    <!-- default end_conn -->
    <!-- default socket_destroy -->

    <!-- Verification Events -->
    <verify_resp>verify_200</verify_resp>

    <!-- Reporting Events -->
    <report_init>simple_report_init</report_init>
    <process_stats>simple_process_stats</process_stats>
    <report_stats>simple_report_stats</report_stats>
    <destroy_report>simple_destroy_report</destroy_report>
  </profile>

  <!-- A farmer runs one profile a certain number of times.  -->
  <farmer>
    <name>Joe</name>
    <!-- run the Joe farmer 5 times -->
    <count>5</count>
    <!-- Joe uses this profile -->
    <useprofile>RoundRobinProfile</useprofile>
  </farmer>

  <!-- A farm contains a bunch of farmers - each farmer is a thread.  -->
  <farm>
    <name>Bingo</name>
    <usefarmer count="1">Joe</usefarmer>
  </farm>

  <!-- Set the seed to a known value so we can reproduce the same tests -->
  <seed>23</seed>
</flood>