这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/resources/scripts/networkcorruption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Script for NetworkCorruption Chaos Monkey

# Corrupts 5% of packets
tc qdisc add dev eth0 root netem corrupt 5%
sudo tc qdisc add dev eth0 root netem corrupt 5%
2 changes: 1 addition & 1 deletion src/main/resources/scripts/networklatency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Script for NetworkLatency Chaos Monkey

# Adds 1000ms +- 500ms of latency to each packet
tc qdisc add dev eth0 root latency delay 1000ms 500ms
sudo tc qdisc add dev eth0 root netem delay 1000ms 500ms

2 changes: 1 addition & 1 deletion src/main/resources/scripts/networkloss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

# Drops 7% of packets, with 25% correlation with previous packet loss
# 7% is high, but it isn't high enough that TCP will fail entirely
tc qdisc add dev eth0 root netem loss 7% 25%
sudo tc qdisc add dev eth0 root netem loss 7% 25%