在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
分布式系统异常测试工具 模拟系统网络异常: 丢包,乱序,延时,重复 模拟磁盘系统异常: 读写异常 模拟CPU高使用异常: CPU占用100%(多核) 模拟内存占用 .... 提供dstp-agetn异常执行 模拟程序及client-ctl发送请求工具 "Introduce"#################################### distribute system abnormal test agent(dstp) dstp-agetn is a tool which produce abnormal status such a. package loss,package reorder...., b. disk can not read/write c. cpu run with 100% d. memory alloc alots space and so on when run dstp-agent, you should send abnormal request by client-ctl tool which send httprequest to dstp-agent(http-server) "References"#################################### https://github.com/osrg/namazu https://github.com/netflix https://github.com/hookswitch https://github.com/AkihiroSuda https://github.com/gorilla https://github.com/google/gopacket git.apache.org/thrift.git/lib/go/thrift "Source modify"################################### ##github.com/hanwen/go-fuse/fuse/nodefs/fuse.go mountOpts := fuse.MountOptions{} ========> mountOpts := fuse.MountOptions{ Options: []string{"nonempty"}, } github.com/hanwen/go-fuse/fuse/mount_linux.go github.com/hanwen/go-fuse/fuse/server.go add function : ExecRelease(mountPoint string, op string) (err error) "Resume(when ethernet or disk not work)"################################# iptables -F tc qdisc del dev eth0 handle 10: root umount -l your_fuse_dir "Usage"############################################## (1) "start inspect workers with daemon mode" ./dstp-agent & (2) "send ethernet request. such package delay" NOTICE: host is dstp-agent host; targetip is packaget (loss/reorder/duplicate) ip ./client-ctl -host=127.0.0.1 -duration=30 -interval=10 -ethernet=yes -targetip=10.134.99.128 after this shell, package will delay 100ms and persist 30s, you can ping 10.134.99.128 to check delay "Report or contact"################################## [email protected] https://github.com/cloudusers www.coterie.tech |
请发表评论