parent
6051f7f1fb
commit
95d4a889e5
@ -1,20 +1,19 @@ |
||||
#!/bin/bash |
||||
cd /home/ec2-user |
||||
commanderIP=52.53.162.27 # <- Put the commander IP here. |
||||
curl http://$commanderIP:8080/soldier -o soldier |
||||
yum install ruby wget -y |
||||
cd $HOME |
||||
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 |
||||
curl http://$commanderIP:8080/benchmark -o benchmark |
||||
chmod +x ./benchmark |
||||
curl http://$commanderIP:8080/txgen -o txgen |
||||
chmod +x ./txgen |
||||
chmod +x ./benchmark |
||||
|
||||
# Get My IP |
||||
ip=`curl http://169.254.169.254/latest/meta-data/public-ipv4` |
||||
|
||||
node_port=9000 |
||||
soldier_port=1$node_port |
||||
SOLDIER_PORT=9000 |
||||
# Kill existing soldier |
||||
fuser -k -n tcp $soldier_port |
||||
fuser -k -n tcp $SOLDIER_PORT |
||||
|
||||
# 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