Morph gce_multinode-based scripts into net/

This commit is contained in:
Michael Vines
2018-08-28 10:19:33 -07:00
parent ffb72136c8
commit 399caf343c
16 changed files with 676 additions and 340 deletions

1
net/remote/README.md Normal file
View File

@@ -0,0 +1 @@
Scripts that run on the remote testnet nodes

15
net/remote/remote_client.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -e
[[ -n $1 ]] || exit
cd "$(dirname "$0")"/../..
source net/common.sh
loadConfigFile
PATH="$HOME"/.cargo/bin:"$PATH"
rsync -vPrz "$1":~/.cargo/bin/solana* ~/.cargo/bin/
numNodes=1 # TODO: Pass this in
export USE_INSTALL=1
multinode-demo/client.sh "$1":~/solana $numNodes --loop -s 600 --sustained >client.log 2>&1 &

15
net/remote/remote_leader.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -e
cd "$(dirname "$0")"/../..
source net/common.sh
loadConfigFile
PATH="$HOME"/.cargo/bin:"$PATH"
export USE_INSTALL=1
export SOLANA_CUDA=1
./fetch-perf-libs.sh
./multinode-demo/setup.sh
./multinode-demo/drone.sh >drone.log 2>&1 &
./multinode-demo/leader.sh >leader.log 2>&1 &

15
net/remote/remote_validator.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -e
[[ -n $1 ]] || exit
cd "$(dirname "$0")"/../..
source net/common.sh
loadConfigFile
PATH="$HOME"/.cargo/bin:"$PATH"
rsync -vPrz "$1":~/.cargo/bin/solana* ~/.cargo/bin/
export USE_INSTALL=1
./multinode-demo/setup.sh
./multinode-demo/validator.sh "$1":~/solana "$1" >validator.log 2>&1 &