diff --git a/deploy_btctx.sh b/deploy_btctx.sh deleted file mode 100755 index 92285e950..000000000 --- a/deploy_btctx.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/deploy_linux.sh b/deploy_linux.sh deleted file mode 100755 index ec95cb1f4..000000000 --- a/deploy_linux.sh +++ /dev/null @@ -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 diff --git a/lint_before_submit.sh b/lint_before_submit.sh deleted file mode 100755 index 4b96d5b2c..000000000 --- a/lint_before_submit.sh +++ /dev/null @@ -1,3 +0,0 @@ -go get -u golang.org/x/lint/golint -golint ./... - diff --git a/run_commander.sh b/run_commander.sh deleted file mode 100755 index ad0366204..000000000 --- a/run_commander.sh +++ /dev/null @@ -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 diff --git a/run_experiment.sh b/run_experiment.sh deleted file mode 100755 index de0525475..000000000 --- a/run_experiment.sh +++ /dev/null @@ -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 diff --git a/sysctl.sh b/sysctl.sh deleted file mode 100755 index d2fd8186a..000000000 --- a/sysctl.sh +++ /dev/null @@ -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'; \ No newline at end of file diff --git a/kill_node.sh b/test/kill_node.sh similarity index 100% rename from kill_node.sh rename to test/kill_node.sh diff --git a/send_txn.sh b/test/send_txn.sh similarity index 100% rename from send_txn.sh rename to test/send_txn.sh