-
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.
Signed-off-by: ywang19 <[email protected]>
- Loading branch information
ywang19
committed
Jun 14, 2016
1 parent
ad7a90c
commit 508cd9c
Showing
4 changed files
with
160 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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<workload name="gcs-sample" description="sample benchmark for Google Cloud Storage"> | ||
|
||
<!-- Authentication needs service account credentials. --> | ||
<!-- Sample credential file: ./release/conf/gcs-service-account-sample.json --> | ||
<storage type="gcs" config="projectid=<projectid>;jsonkeyfile=</path/to/json/key.json/>" /> | ||
|
||
<workflow> | ||
|
||
<workstage name="init"> | ||
<work type="init" workers="1" config="cprefix=gcstestqwer;containers=r(1,2)" /> | ||
</workstage> | ||
|
||
<workstage name="prepare"> | ||
<work type="prepare" workers="1" config="cprefix=gcstestqwer;containers=r(1,2);objects=r(1,10);sizes=c(64)KB" /> | ||
</workstage> | ||
|
||
<workstage name="main"> | ||
<work name="main" workers="8" runtime="30"> | ||
<operation type="read" ratio="80" config="cprefix=gcstestqwer;containers=u(1,2);objects=u(1,10)" /> | ||
<operation type="write" ratio="20" config="cprefix=gcstestqwer;containers=u(1,2);objects=u(11,20);sizes=c(64)KB" /> | ||
</work> | ||
</workstage> | ||
|
||
<workstage name="cleanup"> | ||
<work type="cleanup" workers="1" config="cprefix=gcstestqwer;containers=r(1,2);objects=r(1,20)" /> | ||
</workstage> | ||
|
||
<workstage name="dispose"> | ||
<work type="dispose" workers="1" config="cprefix=gcstestqwer;containers=r(1,2)" /> | ||
</workstage> | ||
|
||
</workflow> | ||
|
||
</workload> |
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,12 @@ | ||
// Service account json file can be generated from https://console.developers.google.com/apis/credentials | ||
{ | ||
"type": "service_account", | ||
"private_key_id": "****************************************", | ||
"private_key": "-----BEGIN PRIVATE KEY-----\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n*******************\n-----END PRIVATE KEY-----\n", | ||
"client_email": "*****@*****.****", | ||
"client_id": "************************", | ||
"auth_uri": "https://****.****.***/", | ||
"token_uri": "https://****.****.***/", | ||
"auth_provider_x509_cert_url": "https://****.****.***/", | ||
"client_x509_cert_url": "https://****.****.***/" | ||
} |
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,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<workload name="openio sample workload" description="light run" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<workflow config=""> | ||
<workstage name="init" closuredelay="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<work name="init" type="init" workers="5" interval="5" | ||
division="container" runtime="0" rampup="0" rampdown="0" | ||
afr="0" totalOps="30" totalBytes="0" config="cprefix=container_;containers=r(1,20)"> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<operation type="init" ratio="100" division="container" | ||
config="cprefix=container_;containers=r(1,20)" id="op1"/> | ||
</work> | ||
</workstage> | ||
<workstage name="prepare" closuredelay="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<work name="prepare" type="prepare" workers="5" | ||
interval="5" division="object" runtime="0" rampup="0" | ||
rampdown="0" afr="0" totalOps="60" totalBytes="0" config="cprefix=container_;containers=r(1,20);objects=r(1,30);sizes=c(5)KB"> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<operation type="prepare" ratio="100" division="object" | ||
config="createContainer=false;cprefix=container_;containers=r(1,20);objects=r(1,60);sizes=c(5)KB" id="op1"/> | ||
</work> | ||
</workstage> | ||
<workstage name="main" closuredelay="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<work name="main" type="normal" workers="5" interval="5" | ||
division="container" runtime="120" rampup="0" | ||
rampdown="0" afr="200000" totalOps="0" totalBytes="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<operation type="read" ratio="50" division="container" | ||
config="cprefix=container_;containers=u(1,20);objects=u(1,40)" id="op1"/> | ||
<operation type="write" ratio="40" division="container" | ||
config="cprefix=container_;containers=u(1,20);objects=u(10,50);sizes=c(6)KB" id="op2"/> | ||
<operation type="delete" ratio="10" division="container" | ||
config="cprefix=container_;containers=u(1,20);objects=u(51,60)" id="op3"/> | ||
</work> | ||
</workstage> | ||
<workstage name="cleanup" closuredelay="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<work name="cleanup" type="cleanup" workers="5" | ||
interval="5" division="object" runtime="0" rampup="0" | ||
rampdown="0" afr="0" totalOps="30" totalBytes="0" config="cprefix=container_;containers=r(1,20);objects=r(1,30)"> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<operation type="cleanup" ratio="100" division="object" | ||
config="cprefix=container_;containers=r(1,20);objects=r(1,60)" id="op1"/> | ||
</work> | ||
</workstage> | ||
<workstage name="dispose" closuredelay="0" config=""> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<work name="dispose" type="dispose" workers="5" interval="5" | ||
division="container" runtime="0" rampup="0" rampdown="0" | ||
afr="0" totalOps="6" totalBytes="0" config="cprefix=container_;containers=r(1,20)"> | ||
<auth type="none"/> | ||
<storage type="openio" config="ns=NS;account=myaccount;proxyd-url=http://127.0.0.1:6000"/> | ||
<operation type="dispose" ratio="100" | ||
division="container" | ||
config="objects=r(0,0);sizes=c(0)B;cprefix=container_;containers=r(1,20)" id="op1"/> | ||
</work> | ||
</workstage> | ||
</workflow> | ||
</workload> |
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<workload name="test" description="The distribution is a summarization of a real-world trace script. The trace script was collected continuously | ||
for two weeks, and the system is located in a regional server farm operated by ASUS Webstorage. The workload contains 4 types of activities | ||
that are frequently invoked in the object storage servers – read, write, append and move."> | ||
|
||
<storage type="swift" /> | ||
|
||
<auth type="swauth" config="username=test:swift;password=thepassword;auth_url=http://lab-be1:80/auth" /> | ||
|
||
<workflow> | ||
<workstage name="init"> | ||
<work type="init" | ||
workers="1" | ||
config="containers=r(1,431)" /> | ||
</workstage> | ||
|
||
<workstage name="prepare"> | ||
<work type="prepare" | ||
workers="40" | ||
config="containers=r(1,431);objects=r(1,1299);sizes=h(1|100|604,101|500|116,501|1024|51,1025|5120|169,5121|102400|18,102401|1024000|2)KB" /> | ||
</workstage> | ||
<workstage name="delay" closuredelay="300"> | ||
<work type="delay" workers="1" /> | ||
</workstage> | ||
<workstage name="main"> | ||
<work name="main" workers="256" runtime="900"> | ||
<operation type="read" | ||
config="containers=u(1,431);objects=u(1,1299)" /> | ||
</work> | ||
</workstage> | ||
<workstage name="cleanup"> | ||
<work type="cleanup" | ||
workers="40" | ||
config="containers=r(1,431);objects=r(1,1299)" /> | ||
</workstage> | ||
|
||
<workstage name="dispose"> | ||
<work type="dispose" workers="1" config="containers=r(1,431)" /> | ||
</workstage> | ||
</workflow> | ||
</workload> |