The core protocol of WoopChain
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.
 
 
 
woop/deploy_one_instance.sh

22 lines
793 B

#!/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
python aws-scripts/preprocess_peerlist.py
FILE='isTransaction.txt'
config=$1
log_folder=logs/
mkdir -p log_folder
if [ -f $FILE ]; then
go run ./aws-code/transaction_generator.go -config_file $config -log_folder $log_folder
else
go run ./benchmark_main.go -config_file $config& -log_folder $log_folder
fi