net: Add ability to only start/stop client nodes (#6503)

* Add info --eval

* net: Add ability to start idle client nodes
This commit is contained in:
Michael Vines
2019-10-22 16:08:49 -07:00
committed by GitHub
parent 4c515d0ef1
commit e462a7d1d5
4 changed files with 49 additions and 9 deletions

View File

@ -8,6 +8,7 @@ zone=
bootstrapValidatorAddress=
bootstrapValidatorMachineType=
clientNodeCount=0
idleClients=false
additionalValidatorCount=10
publicNetwork=false
stopNetwork=false
@ -140,6 +141,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --limit-ledger-size ]]; then
maybeLimitLedgerSize=$1
shift 1
elif [[ $1 = --idle-clients ]]; then
idleClients=true
shift 1
else
usage "Unknown long option: $1"
fi
@ -394,6 +398,10 @@ if ! $skipStart; then
$maybeLimitLedgerSize
)
if $idleClients; then
args+=(-c "idle=$clientNodeCount=")
fi
time net/net.sh "${args[@]}"
) || ok=false

View File

@ -533,6 +533,7 @@ deploy() {
-t "$CHANNEL_OR_TAG" \
-n ${TDS_NODE_COUNT} \
-c ${TDS_CLIENT_COUNT} \
--idle-clients \
-P -u \
-a tds-solana-com --letsencrypt tds.solana.com \
${maybeHashesPerTick} \