Run multiple instances from same workspace

* Support running leader and validators from multiple machines
  using the same NFS mounted workspace.
* Changes to setup, leader and validator scripts
This commit is contained in:
Pankaj Garg
2018-06-22 11:37:42 -07:00
committed by Greg Fitzgerald
parent 3dbbb398df
commit 9209f9acde
3 changed files with 23 additions and 3 deletions

View File

@@ -6,5 +6,13 @@ export RUST_LOG=${RUST_LOG:-solana=info}
set -x
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
IPADDR="$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')"
if [ -z "$IPADDR" ]; then
IPADDR="$(ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}')"
fi
cp leader-$IPADDR.json leader.json
cargo run --release --bin solana-fullnode -- \
-l leader.json < genesis.log tx-*.log > tx-"$(date -u +%Y%m%d%k%M%S%N)".log