1.新手指南
https://github.com/chaosblade-io/chaosblade/wiki/%E6%96%B0%E6%89%8B%E6%8C%87%E5%8D%97
2.下载安装包
https://github.com/chaosblade-io/chaosblade/releases
3.安装
# tar zxvf chaosblade-1.7.2-linux-amd64.tar.gz
# cd chaosblade-1.7.2
# ls
bin blade chaosblade.dat lib logs yaml
4.使用
-- CPU满负载
./blade create cpu fullload
-- CPU占用80%
./blade create cpu load --cpu-percent 90
{"code":200,"success":true,"result":"3286ba7ef4cf6c89"}
-- 内存占用80%
./blade c mem load --mode ram --mem-percent 80
-- 查看id
ps -ef |grep chaosblade
-- 销毁上述实验
blade destroy 6fa04946baf42920
--销毁所有的实验
for i in `ps -ef|grep chaosblade|grep -v auto| awk -F'=' '{print $2}'|awk '{print $1}'`;do /opt/soft/chaosblade-1.7.2/blade destroy $i;done
标签:1.7,grep,--,chaosblade,blade,E6%,使用,安装
From: https://www.cnblogs.com/chunjeh/p/17911307.html