Deploy beta testnet with 100 nodes across AWS and GCP
This commit is contained in:
parent
cd634801a2
commit
f441177840
|
@ -11,6 +11,8 @@ clientNodeCount=0
|
||||||
additionalFullNodeCount=10
|
additionalFullNodeCount=10
|
||||||
publicNetwork=false
|
publicNetwork=false
|
||||||
skipSetup=false
|
skipSetup=false
|
||||||
|
skipStart=false
|
||||||
|
externalNode=false
|
||||||
tarChannelOrTag=edge
|
tarChannelOrTag=edge
|
||||||
delete=false
|
delete=false
|
||||||
enableGpu=false
|
enableGpu=false
|
||||||
|
@ -65,7 +67,7 @@ zone=$3
|
||||||
[[ -n $zone ]] || usage "Zone not specified"
|
[[ -n $zone ]] || usage "Zone not specified"
|
||||||
shift 3
|
shift 3
|
||||||
|
|
||||||
while getopts "h?p:Pn:c:t:gG:a:Dbd:ru" opt; do
|
while getopts "h?p:Pn:c:t:gG:a:Dbd:rusx" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
h | \?)
|
h | \?)
|
||||||
usage
|
usage
|
||||||
|
@ -111,6 +113,12 @@ while getopts "h?p:Pn:c:t:gG:a:Dbd:ru" opt; do
|
||||||
r)
|
r)
|
||||||
skipSetup=true
|
skipSetup=true
|
||||||
;;
|
;;
|
||||||
|
s)
|
||||||
|
skipStart=true
|
||||||
|
;;
|
||||||
|
x)
|
||||||
|
externalNode=true
|
||||||
|
;;
|
||||||
u)
|
u)
|
||||||
blockstreamer=true
|
blockstreamer=true
|
||||||
;;
|
;;
|
||||||
|
@ -142,7 +150,7 @@ set -x
|
||||||
|
|
||||||
if ! $skipSetup; then
|
if ! $skipSetup; then
|
||||||
echo "--- $cloudProvider.sh delete"
|
echo "--- $cloudProvider.sh delete"
|
||||||
time net/"$cloudProvider".sh delete -z "$zone" -p "$netName"
|
time net/"$cloudProvider".sh delete -z "$zone" -p "$netName" ${externalNode:+-x}
|
||||||
if $delete; then
|
if $delete; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -180,6 +188,10 @@ if ! $skipSetup; then
|
||||||
create_args+=(-P)
|
create_args+=(-P)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if $externalNode; then
|
||||||
|
create_args+=(-x)
|
||||||
|
fi
|
||||||
|
|
||||||
time net/"$cloudProvider".sh create "${create_args[@]}"
|
time net/"$cloudProvider".sh create "${create_args[@]}"
|
||||||
else
|
else
|
||||||
echo "--- $cloudProvider.sh config"
|
echo "--- $cloudProvider.sh config"
|
||||||
|
@ -218,19 +230,22 @@ if $skipSetup; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ok=true
|
ok=true
|
||||||
(
|
if ! $skipStart; then
|
||||||
if $skipSetup; then
|
(
|
||||||
# TODO: Enable rolling updates
|
if $skipSetup; then
|
||||||
#op=update
|
# TODO: Enable rolling updates
|
||||||
op=restart
|
#op=update
|
||||||
else
|
op=restart
|
||||||
op=start
|
else
|
||||||
fi
|
op=start
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2086 # Don't want to double quote maybeRejectExtraNodes
|
# shellcheck disable=SC2086 # Don't want to double quote maybeRejectExtraNodes
|
||||||
time net/net.sh $op -t "$tarChannelOrTag" \
|
time net/net.sh $op -t "$tarChannelOrTag" \
|
||||||
$maybeSkipSetup $maybeRejectExtraNodes $maybeNoValidatorSanity $maybeNoLedgerVerify
|
$maybeSkipSetup $maybeRejectExtraNodes $maybeNoValidatorSanity $maybeNoLedgerVerify
|
||||||
) || ok=false
|
) || ok=false
|
||||||
|
|
||||||
|
net/net.sh logs
|
||||||
|
fi
|
||||||
|
|
||||||
net/net.sh logs
|
|
||||||
$ok
|
$ok
|
||||||
|
|
|
@ -210,7 +210,13 @@ start() {
|
||||||
NO_VALIDATOR_SANITY=1 \
|
NO_VALIDATOR_SANITY=1 \
|
||||||
RUST_LOG=solana=info \
|
RUST_LOG=solana=info \
|
||||||
ci/testnet-deploy.sh beta-testnet-solana-com ec2 us-west-1a \
|
ci/testnet-deploy.sh beta-testnet-solana-com ec2 us-west-1a \
|
||||||
-t "$CHANNEL_OR_TAG" -n 35 -c 0 -u -P -a eipalloc-0f286cf8a0771ce35 \
|
-t "$CHANNEL_OR_TAG" -n 35 -c 0 -s -u -P -a eipalloc-0f286cf8a0771ce35 \
|
||||||
|
${maybeReuseLedger:+-r} \
|
||||||
|
${maybeDelete:+-D}
|
||||||
|
NO_VALIDATOR_SANITY=1 \
|
||||||
|
RUST_LOG=solana=info \
|
||||||
|
ci/testnet-deploy.sh beta-testnet-solana-com gce us-west1-a \
|
||||||
|
-t "$CHANNEL_OR_TAG" -n 65 -c 0 -x -u -P \
|
||||||
${maybeReuseLedger:+-r} \
|
${maybeReuseLedger:+-r} \
|
||||||
${maybeDelete:+-D}
|
${maybeDelete:+-D}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue