blade演练命令

/ 网络技术 / 0 条评论 / 1842浏览
./blade prepare jvm --pid 6862 -attach agent
./blade status --type prepare  65dedbe42dc99b36 -查询attach

./blade status --type create   be90d9cade7a301a  -查询实验


dubbo

./blade c dubbo delay --time 10000 --service com.sijibao.middle.order.api.service.OrderQueryRpcService --methodname queryOrderDetail --consumer
./blade c dubbo throwCustomException --exception java.lang.Exception --service com.sijibao.middle.order.api.service.OrderQueryRpcService --methodname queryOrderDetail --consumer
middle-order-service

页面验证


mysql连接池

./blade c druid connectionpoolfull

机器常见实验

cpu/memory/磁盘/网络等


./blade r uuid - 卸载jvm

./blade d uuid - 撤回实验



https://chaosblade-io.gitbook.io/chaosblade-help-zh-cn/blade-create-jvm/blade-create-jvm-delay

wget -c https://repo.huaweicloud.com/helm/v3.9.2/helm-v3.9.2-linux-amd64.tar.gz
helm upgrade chaos-mesh chaos-mesh/chaos-mesh
helm uninstall chaos-mesh -n chaos-mesh
helm install chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock
helm upgrade chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set dashboard.securityMode=false --set chaosDaemon.env.DOCKER_API_VERSION=1.40 --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock
   //关闭安全模式
https://chaos-mesh.org/zh/docs/simulate-pod-chaos-on-kubernetes/  实验

wget https://chaosblade.oss-cn-hangzhou.aliyuncs.com/platform/release/1.7.1/chaosagent.tar.gz -O chaos.tar.gz && tar -zxvf chaos.tar.gz -C /opt/ && sudo sh /opt/chaos/chaosctl.sh install -k 693eb4bddc9d4a55b08feac605486f68 -p  tomcat_op  -g  apps  -P  12345  -t 192.168.50.6:7001