sudo yum install nmap-ncat java curl java-1.8.0-openjdk-devel -y
sudo apt install nmap openjdk-8-jdk
<?xml version="1.0" encoding="UTF-8" ?><workload name="s3-50M-sample" description="sample benchmark for s3"><storage type="s3" config="accesskey=AKIDHZRLB9Ibhdp7Y7gyQq6BOk1997xxxxxx;secretkey=YaWIuQmCSZ5ZMniUM6hiaLxHnxxxxxx;endpoint=http://cos.ap-beijing.myqcloud.com" /><workflow><workstage name="init"><work type="init" workers="10" config="cprefix=examplebucket;csuffix=-1250000000;containers=r(1,10)" /></workstage><workstage name="prepare"><work type="prepare" workers="100" config="cprefix=examplebucket;csuffix=-1250000000;containers=r(1,10);objects=r(1,1000);sizes=c(50)MB" /></workstage><workstage name="main"><work name="main" workers="100" runtime="300"><operation type="read" ratio="50" config="cprefix=examplebucket;csuffix=-1250000000;containers=u(1,10);objects=u(1,1000)" /><operation type="write" ratio="50" config="cprefix=examplebucket;csuffix=-1250000000;containers=u(1,10);objects=u(1000,2000);sizes=c(50)MB" /></work></workstage><workstage name="cleanup"><work type="cleanup" workers="10" config="cprefix=examplebucket;csuffix=-1250000000;containers=r(1,10);objects=r(1,2000)" /></workstage><workstage name="dispose"><work type="dispose" workers="10" config="cprefix=examplebucket;csuffix=-1250000000;containers=r(1,10)" /></workstage></workflow></workload>
パラメータ | 説明 |
accesskey、secretkey | |
cprefix | バケット名のプレフィックス。例えば、examplebucket |
containers | パケット名中の数字の範囲。最後のパケット名はcprefixとcontainersから構成されます。例えば、examplebucket1、examplebucket2 |
csuffix | ユーザーのAPPID。APPIDの前に-の記号を付けることに注意してください(例:-1250000000) |
runtime | 負荷テストの実行時間 |
ratio | 読み取りと書き込みの比率 |
workers | 負荷テストのスレッド数 |
sudo bash stop-all.sh
この記事はお役に立ちましたか?