You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
518 B
20 lines
518 B
6 years ago
|
#!/bin/bash
|
||
6 years ago
|
cd home/ec2-user
|
||
6 years ago
|
commanderIP= # <- Put the commander IP here.
|
||
6 years ago
|
curl http://$commanderIP:8080/soldier -o soldier
|
||
6 years ago
|
chmod +x ./soldier
|
||
6 years ago
|
curl http://$commanderIP:8080/benchmark -o benchmark
|
||
6 years ago
|
chmod +x ./benchmark
|
||
6 years ago
|
curl http://$commanderIP:8080/txgen -o txgen
|
||
6 years ago
|
chmod +x ./txgen
|
||
|
|
||
|
# Get My IP
|
||
6 years ago
|
ip=`curl http://169.254.169.254/latest/meta-data/public-ipv4`
|
||
6 years ago
|
|
||
6 years ago
|
node_port=9000
|
||
6 years ago
|
soldier_port=1$node_port
|
||
|
# Kill existing soldier
|
||
|
fuser -k -n tcp $soldier_port
|
||
|
|
||
|
# Run soldier
|
||
6 years ago
|
./soldier -ip $ip -port $node_port > soldier_log 2>&1 &
|