<?xml version="1.0" encoding="UTF-8" ?>
<workload name="s3-sample" description="sample benchmark for s3">

  <storage type="s3" config="accesskey=HQ92K5LSLTO4FTCSUHSP;secretkey=pWpjWyOJNpdMVZSlELiWSdQa4fu1S08o22q500VZ;endpoint=http://77.77.79.22:30080" />

  <workflow>

    <workstage name="init">
      <work type="init" workers="10" config="cprefix=s3testqwer;containers=r(1,10)" />
    </workstage>

    <workstage name="prepare">
      <work type="prepare" workers="100" config="cprefix=s3testqwer;containers=r(1,10);objects=r(1,2000);sizes=c(50)MB" />
    </workstage>

    <workstage name="main">
      <work name="main" workers="100" runtime="500">
        <operation type="read" ratio="80" config="cprefix=s3testqwer;containers=u(1,10);objects=u(1,2000)" />
        <operation type="write" ratio="20" config="cprefix=s3testqwer;containers=u(1,10);objects=u(2001,4000);sizes=c(50)MB" />
      </work>
    </workstage>

    <workstage name="cleanup">
      <work type="cleanup" workers="10" config="cprefix=s3testqwer;containers=r(1,10);objects=r(1,4000)" />
    </workstage>

    <workstage name="dispose">
      <work type="dispose" workers="10" config="cprefix=s3testqwer;containers=r(1,10)" />
    </workstage>

  </workflow>

</workload>
