Skip to content

Commit

Permalink
management network
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 11, 2013
1 parent a3bf732 commit 2d55bbe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/management → management
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# management server down
service cloud-management stop
# repair
service cloud-management stop
service cloud-management start

# api server port blocked
iptables -A INPUT -p tcp --dport 8080 -j DROP
Expand Down
15 changes: 15 additions & 0 deletions network
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if=eth1
delay=100.0ms
sleep=10

# delay
#tc qdisc add dev $if root netem delay $delay && sleep $sleep && tc qdisc del dev $if root netem
#tc qdisc add dev eth0 root netem delay 100.0ms && sleep 30.0 && tc qdisc del dev eth0 root netem

# delete
#tc qdisc del dev $if root netem

# block port
#iptables -A INPUT -p tcp --dport 8080 -j DROP
# unblock port
iptables -D INPUT -p tcp --dport 8080 -j DROP
10 changes: 0 additions & 10 deletions src/main/java/network

This file was deleted.

0 comments on commit 2d55bbe

Please sign in to comment.