parent
958632348d
commit
cc54244c4d
@ -1,29 +0,0 @@ |
|||||||
# Kill nodes if any |
|
||||||
./kill_node.sh |
|
||||||
|
|
||||||
# Since `go run` will generate a temporary exe every time, |
|
||||||
# On windows, your system will pop up a network security dialog for each instance |
|
||||||
# and you won't be able to turn it off. With `go build` generating one |
|
||||||
# exe, the dialog will only pop up once at the very first time. |
|
||||||
# Also it's recommended to use `go build` for testing the whole exe. |
|
||||||
go build -o bin/benchmark |
|
||||||
go build -o bin/btctxgen client/btctxgen/main.go |
|
||||||
|
|
||||||
# Create a tmp folder for logs |
|
||||||
t=`date +"%Y%m%d-%H%M%S"` |
|
||||||
log_folder="tmp_log/log-$t" |
|
||||||
|
|
||||||
mkdir -p $log_folder |
|
||||||
|
|
||||||
# Start nodes |
|
||||||
config=$1 |
|
||||||
while IFS='' read -r line || [[ -n "$line" ]]; do |
|
||||||
IFS=' ' read ip port mode shardID <<< $line |
|
||||||
#echo $ip $port $mode |
|
||||||
if [ "$mode" != "client" ]; then |
|
||||||
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder& |
|
||||||
fi |
|
||||||
done < $config |
|
||||||
|
|
||||||
# Generate transactions |
|
||||||
./bin/btctxgen -config_file $config -log_folder $log_folder |
|
@ -1,22 +0,0 @@ |
|||||||
#!/bin/bash -x |
|
||||||
##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 |
|
||||||
source ~/.bash_profile |
|
||||||
echo "Inside deploy linux" |
|
||||||
echo $GOPATH |
|
||||||
echo "Inside deploy linux line 2" |
|
||||||
|
|
||||||
config=$1 |
|
||||||
while read ip port mode; do |
|
||||||
#echo $ip $port $mode $config |
|
||||||
go run ./benchmark.go -ip $ip -port $port -config_file $config& |
|
||||||
done < $config |
|
||||||
go run ./client/txgen/main.go -config_file $config |
|
@ -1,3 +0,0 @@ |
|||||||
go get -u golang.org/x/lint/golint |
|
||||||
golint ./... |
|
||||||
|
|
@ -1,10 +0,0 @@ |
|||||||
cd ~/projects/src/harmony-benchmark/ |
|
||||||
# Compile |
|
||||||
sudo go build -o bin/commander aws-experiment-launch/experiment/commander/main.go |
|
||||||
cd bin |
|
||||||
sudo cp /tmp/distribution_config.txt . |
|
||||||
sudo cp /tmp/commander_info.txt . |
|
||||||
# Take ip address |
|
||||||
IP=`head -n 1 commander_info.txt` |
|
||||||
# Run commander |
|
||||||
sudo ./commander -ip $IP -port 9000 -config_file distribution_config.txt |
|
@ -1,22 +0,0 @@ |
|||||||
# Kill nodes if any |
|
||||||
./kill_node.sh |
|
||||||
|
|
||||||
go build -o bin/benchmark |
|
||||||
go build -o bin/txgen client/txgen/main.go |
|
||||||
cd bin |
|
||||||
|
|
||||||
# Create a tmp folder for logs |
|
||||||
t=`date +"%Y%m%d-%H%M%S"` |
|
||||||
log_folder="tmp_log/log-$t" |
|
||||||
|
|
||||||
mkdir -p $log_folder |
|
||||||
|
|
||||||
# For each of the nodes, start soldier |
|
||||||
config=distribution_config.txt |
|
||||||
while IFS='' read -r line || [[ -n "$line" ]]; do |
|
||||||
IFS=' ' read ip port mode shardID <<< $line |
|
||||||
#echo $ip $port $mode |
|
||||||
./soldier -ip $ip -port $port& |
|
||||||
done < $config |
|
||||||
|
|
||||||
./commander |
|
@ -1,18 +0,0 @@ |
|||||||
# System kernel setup (Mac) |
|
||||||
# Reference: http://www.macfreek.nl/memory/Kernel_Configuration |
|
||||||
sudo sysctl -w kern.ipc.somaxconn=10240 # Limit of number of new connections |
|
||||||
#sudo sysctl -w kern.ipc.maxsockets=10240 # Initial number of sockets in memory |
|
||||||
sudo sysctl -w net.inet.tcp.msl=1000 # TIME_WAIT |
|
||||||
#sudo sysctl -w net.inet.tcp.rfc1323=1 # Enable TCP window scaling |
|
||||||
sudo sysctl -w kern.ipc.maxsockbuf=4194304 # Maximum TCP Window size |
|
||||||
sudo sysctl -w net.inet.tcp.sendspace=131072 # Default send buffer |
|
||||||
sudo sysctl -w net.inet.tcp.recvspace=358400 # Default receive buffer |
|
||||||
|
|
||||||
# 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'; |
|
Loading…
Reference in new issue