Morph gce_multinode-based scripts into net/
This commit is contained in:
1
net/remote/README.md
Normal file
1
net/remote/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Scripts that run on the remote testnet nodes
|
15
net/remote/remote_client.sh
Executable file
15
net/remote/remote_client.sh
Executable 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
15
net/remote/remote_leader.sh
Executable 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
15
net/remote/remote_validator.sh
Executable 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 &
|
Reference in New Issue
Block a user