-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ywang19
committed
Nov 13, 2013
1 parent
994670c
commit db46e03
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |