parent
6051f7f1fb
commit
95d4a889e5
@ -1,20 +1,19 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
cd /home/ec2-user |
yum install ruby wget -y |
||||||
commanderIP=52.53.162.27 # <- Put the commander IP here. |
cd $HOME |
||||||
curl http://$commanderIP:8080/soldier -o soldier |
wget http://unique-bucket-bin.s3.amazonaws.com/txgen |
||||||
|
wget http://unique-bucket-bin.s3.amazonaws.com/soldier |
||||||
|
wget http://unique-bucket-bin.s3.amazonaws.com/benchmark |
||||||
chmod +x ./soldier |
chmod +x ./soldier |
||||||
curl http://$commanderIP:8080/benchmark -o benchmark |
|
||||||
chmod +x ./benchmark |
|
||||||
curl http://$commanderIP:8080/txgen -o txgen |
|
||||||
chmod +x ./txgen |
chmod +x ./txgen |
||||||
|
chmod +x ./benchmark |
||||||
|
|
||||||
# Get My IP |
# Get My IP |
||||||
ip=`curl http://169.254.169.254/latest/meta-data/public-ipv4` |
ip=`curl http://169.254.169.254/latest/meta-data/public-ipv4` |
||||||
|
|
||||||
node_port=9000 |
SOLDIER_PORT=9000 |
||||||
soldier_port=1$node_port |
|
||||||
# Kill existing soldier |
# Kill existing soldier |
||||||
fuser -k -n tcp $soldier_port |
fuser -k -n tcp $SOLDIER_PORT |
||||||
|
|
||||||
# Run soldier |
# Run soldier |
||||||
./soldier -ip $ip -port $node_port > soldier_log 2>&1 & |
./soldier -ip $ip -port $SOLDIER_PORT > soldier_log 2>&1 & |
Loading…
Reference in new issue