parent
e174be6d57
commit
e428e18322
@ -0,0 +1,5 @@ |
||||
for pid in `/bin/ps -fu $USER| grep "slave.go\|slave -port\|leader\|benchmark_node" | grep -v "grep" | awk '{print $2}'`; |
||||
do |
||||
echo 'Killed process: '$pid |
||||
kill -9 $pid |
||||
done |
@ -1,4 +1,8 @@ |
||||
#!/bin/bash -x |
||||
cd /home/ec2-user/projects/src/harmony-benchmark |
||||
./deploy.sh local_iplist.txt |
||||
# GOROOT is the location where Go package is installed on your system |
||||
|
||||
. aws-scripts/setup_golang_path.sh |
||||
|
||||
./deploy_linux.sh local_iplist.txt |
||||
./send_txn.sh |
@ -1,12 +1,5 @@ |
||||
|
||||
#!/bin/bash -x |
||||
sudo yum update -y |
||||
sudo yum install -y golang |
||||
|
||||
# GOROOT is the location where Go package is installed on your system |
||||
export GOROOT=/usr/lib/golang |
||||
|
||||
# GOPATH is the location of your work directory |
||||
export GOPATH=$HOME/projects |
||||
|
||||
# PATH in order to access go binary system wide |
||||
export PATH=$PATH:$GOROOT/bin |
||||
. aws-scripts/setup_golang.sh |
@ -0,0 +1,8 @@ |
||||
# GOROOT is the location where Go package is installed on your system |
||||
export GOROOT=/usr/lib/golang |
||||
|
||||
# GOPATH is the location of your work directory |
||||
export GOPATH=$HOME/projects |
||||
|
||||
# PATH in order to access go binary system wide |
||||
export PATH=$PATH:$GOROOT/bin |
@ -0,0 +1,15 @@ |
||||
##The commented suffix is for linux |
||||
##Reference: https://github.com/Zilliqa/Zilliqa/blob/master/tests/Node/test_node_simple.sh |
||||
sudo sysctl net.core.somaxconn=1024 |
||||
sudo sysctl net.core.netdev_max_backlog=65536; |
||||
sudo sysctl net.ipv4.tcp_tw_reuse=1; |
||||
sudo sysctl -w net.ipv4.tcp_rmem='65536 873800 1534217728'; |
||||
sudo sysctl -w net.ipv4.tcp_wmem='65536 873800 1534217728'; |
||||
sudo sysctl -w net.ipv4.tcp_mem='65536 873800 1534217728'; |
||||
|
||||
./kill_node.sh |
||||
ipfile=$1 |
||||
while read ip port mode; do |
||||
#echo $ip $port $mode $ipfile |
||||
go run ./benchmark_node.go -ip $ip -port $port -ipfile $ipfile& |
||||
done < $ipfile |
Loading…
Reference in new issue