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=************************************;secretkey=************************************;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>
-Dcom.amazonaws.services.s3.disableGetObjectMD5Validation=true

sudo bash start-all.sh
sudo bash start-driver.sh &sudo bash start-controller.sh &
sudo bash cli.sh submit conf/s3-config-sample.xml
http://ip:19088/controller/index.html(IP 替换为用户的压测机器 IP)查看执行状态:


sudo bash stop-all.sh
文档反馈