зеркало из https://github.com/microsoft/aragog.git
Script now working great
This commit is contained in:
Родитель
9ed9026830
Коммит
90d75f0f99
|
@ -6,6 +6,8 @@ if [[ $# -ne 1 ]]; then
|
|||
fi
|
||||
|
||||
sudo conntrack -F
|
||||
sudo kill $(sudo lsof -t -i:10001)
|
||||
sudo kill $(sudo lsof -t -i:10000)
|
||||
|
||||
echo $1
|
||||
|
||||
|
|
|
@ -18,23 +18,23 @@ if [ $NUMSERVERS -lt 16 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
ssh ${myArray[12]} "nohup ./aaragog/runme/runGlobal.sh > /dev/null 2> /dev/null &"
|
||||
ssh ${myArray[12]} "nohup ./aaragog/runme/runGlobal.sh </dev/null >/dev/null 2>&1 &"
|
||||
|
||||
sleep 10
|
||||
|
||||
for i in 4 5 6 7
|
||||
do
|
||||
ssh ${myArray[$i]} "nohup ./aaragog/runme/runFirewall.sh $(($i-3)) > /dev/null 2> /dev/null &"
|
||||
ssh ${myArray[$i]} "nohup ./aaragog/runme/runFirewall.sh $(($i-3)) </dev/null >/dev/null 2>&1 &"
|
||||
done
|
||||
|
||||
for i in 0 1 2 3
|
||||
do
|
||||
ssh ${myArray[$i]} "cd traffic; sudo nohup ./start_background.sh $i 8 traffic_5e9_ </dev/null >/dev/null 2>&1 &"
|
||||
ssh ${myArray[$i]} "cd traffic; nohup ./start_background.sh $i 8 traffic_5e9_ </dev/null >/dev/null 2>&1 &"
|
||||
done
|
||||
|
||||
for i in 8 9 10 11
|
||||
do
|
||||
ssh ${myArray[$i]} "cd traffic; sudo nohup ./start_background.sh $(($i-4)) 8 traffic_5e9_ </dev/null >/dev/null 2>&1 &"
|
||||
ssh ${myArray[$i]} "cd traffic; nohup ./start_background.sh $(($i-4)) 8 traffic_5e9_ </dev/null >/dev/null 2>&1 &"
|
||||
done
|
||||
|
||||
sleep 300
|
||||
|
@ -44,6 +44,11 @@ do
|
|||
ssh ${myArray[$i]} "sudo iptables -A FORWARD -s 10.10.4.0/24 -d 10.10.1.0/24 -m conntrack --ctstate NEW -j ACCEPT"
|
||||
done
|
||||
|
||||
for i in 8 9 10 11
|
||||
do
|
||||
ssh ${myArray[$i]} "cd traffic; nohup python time_walking.py $(($i-4)) 8 traffic_5e9_ </dev/null >/dev/null 2>&1 &"
|
||||
done
|
||||
|
||||
sleep 300
|
||||
|
||||
for i in 0 1 2 3
|
||||
|
@ -66,6 +71,10 @@ do
|
|||
ssh ${myArray[$i]} "sudo iptables -D FORWARD -s 10.10.4.0/24 -d 10.10.1.0/24 -m conntrack --ctstate NEW -j ACCEPT"
|
||||
done
|
||||
|
||||
ssh ${myArray[12]} "cd flink-1.9.3/ ; ./bin/stop-cluster.sh"
|
||||
|
||||
sleep 10
|
||||
|
||||
scp ${myArray[12]}:./aaragog/out/*.txt .
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче