• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

DistSysTestPlatform: 分布式系统异常测试工具

原作者: [db:作者] 来自: 网络 收藏 邀请
分布式系统异常测试工具
模拟系统网络异常: 丢包,乱序,延时,重复
模拟磁盘系统异常: 读写异常
模拟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

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap