1 擷取安裝包
https://github.com/intel-cloud/cosbench
2 安裝依賴包
jdk curl
3 解壓包
unzip CosBench-0.4.2.c3.zip
4 賦予執行腳本權限
cd 0.4.2.c3 && chmod +x *.sh
5 啟動driver與controller服務
./start-all.sh
6 登陸的web界面,在浏覽器輸入
http://ip:19088/controller/
7 配置cosbench對rgw進行讀寫
vim conf/s3-config-sample.xml
修改第4行:輸入某個使用者對應的accesskey與secretkey,删除proxyhost這個字段,proxypory是對應的server端口,endpoint時對應的ip+端口号,列如:endpoint=http://1.1.1.1:8888
8 啟動讀寫任務進行讀寫
./cli.sh conf/s3-config-sample.xml
在web界面上可以看到讀寫任務