Skip to content

Commit

Permalink
delay stage sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ywang19 committed Nov 13, 2013
1 parent 994670c commit db46e03
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions release/conf/delay-stage-config-sample.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" ?>
<workload name="swift-sample" description="sample benchmark for swift">

<storage type="swift" />

<!-- MODIFY ME -->
<auth type="swauth" config="username=test:tester;password=testing;auth_url=http://192.168.10.1:8080/auth/v1.0" />

<!-- Keystone Authentication
<auth type="keystone" config="username=tester;password=testing;tenant_name=test;auth_url=http://127.0.0.1:5000/v2.0;service=swift service" />
-->

<workflow>

<workstage name="init">
<work type="init" workers="1" config="containers=r(1,32)" />
</workstage>

<!-- Delay stage: This stage can be used to insert a sleeping delay during a workload run. The time for which workload run will sleep
can be set through the closuredelay property. Value of closuredelay property is in seconds.-->
<workstage name="delay" closuredelay="60">
<work name="delay" type="delay">
<operation type="delay"/>
</work>
</workstage>

<!-- closuredelay property can also be used in any stage. After the stage is run, it will sleep for amount of time which is specified as
value of closuredelay property in seconds -->
<workstage name="prepare" closuredelay="60">
<work type="prepare" workers="1" config="containers=r(1,32);objects=r(1,50);sizes=c(64)KB" />
</workstage>

<workstage name="main">
<work name="main" workers="8" runtime="300">
<operation type="read" ratio="80" config="containers=u(1,32);objects=u(1,50)" />
<operation type="write" ratio="20" config="containers=u(1,32);objects=u(51,100);sizes=c(64)KB" />
</work>
</workstage>

<!-- Delay stage: This stage can be used to insert a sleeping delay during a workload run. The time for which workload run will sleep
can be set through the closuredelay property. Value of closuredelay property is in seconds.-->
<workstage name="delay" closuredelay="60">
<work name="delay" type="delay">
<operation type="delay"/>
</work>
</workstage>

<workstage name="cleanup">
<work type="cleanup" workers="1" config="containers=r(1,32);objects=r(1,100)" />
</workstage>

<workstage name="dispose">
<work type="dispose" workers="1" config="containers=r(1,32)" />
</workstage>

</workflow>

</workload>

0 comments on commit db46e03

Please sign in to comment.