Revert "Add a stand-alone gossip node on the blocksteamer instance"

This reverts commit a217920561.

This commit is causing trouble when the TdS cluster is reset and
validators running an older genesis config are still present.
Occasionally an RPC URL from an older validator will be selected,
causing a new node to fail to boot.
This commit is contained in:
Michael Vines
2020-01-04 16:42:04 -07:00
parent c189767090
commit f74fa60c8b
2 changed files with 24 additions and 37 deletions

View File

@ -501,7 +501,6 @@ startBootstrapLeader() {
ssh "${sshOptions[@]}" -n "$ipAddress" \ ssh "${sshOptions[@]}" -n "$ipAddress" \
"./solana/net/remote/remote-node.sh \ "./solana/net/remote/remote-node.sh \
$deployMethod \ $deployMethod \
$ipAddress \
bootstrap-leader \ bootstrap-leader \
$entrypointIp \ $entrypointIp \
$((${#validatorIpList[@]} + ${#blockstreamerIpList[@]} + ${#archiverIpList[@]})) \ $((${#validatorIpList[@]} + ${#blockstreamerIpList[@]} + ${#archiverIpList[@]})) \
@ -571,7 +570,6 @@ startNode() {
ssh "${sshOptions[@]}" -n "$ipAddress" \ ssh "${sshOptions[@]}" -n "$ipAddress" \
"./solana/net/remote/remote-node.sh \ "./solana/net/remote/remote-node.sh \
$deployMethod \ $deployMethod \
$ipAddress \
$nodeType \ $nodeType \
$entrypointIp \ $entrypointIp \
$((${#validatorIpList[@]} + ${#blockstreamerIpList[@]} + ${#archiverIpList[@]})) \ $((${#validatorIpList[@]} + ${#blockstreamerIpList[@]} + ${#archiverIpList[@]})) \

View File

@ -5,28 +5,27 @@ cd "$(dirname "$0")"/../..
set -x set -x
deployMethod="$1" deployMethod="$1"
ipAddress="$2" nodeType="$2"
nodeType="$3" entrypointIp="$3"
entrypointIp="$4" numNodes="$4"
numNodes="$5" if [[ -n $5 ]]; then
if [[ -n $6 ]]; then export RUST_LOG="$5"
export RUST_LOG="$6"
fi fi
skipSetup="$7" skipSetup="$6"
failOnValidatorBootupFailure="$8" failOnValidatorBootupFailure="$7"
externalPrimordialAccountsFile="$9" externalPrimordialAccountsFile="$8"
maybeDisableAirdrops="${10}" maybeDisableAirdrops="$9"
internalNodesStakeLamports="${11}" internalNodesStakeLamports="${10}"
internalNodesLamports="${12}" internalNodesLamports="${11}"
nodeIndex="${13}" nodeIndex="${12}"
numBenchTpsClients="${14}" numBenchTpsClients="${13}"
benchTpsExtraArgs="${15}" benchTpsExtraArgs="${14}"
numBenchExchangeClients="${16}" numBenchExchangeClients="${15}"
benchExchangeExtraArgs="${17}" benchExchangeExtraArgs="${16}"
genesisOptions="${18}" genesisOptions="${17}"
extraNodeArgs="${19}" extraNodeArgs="${18}"
gpuMode="${20:-auto}" gpuMode="${19:-auto}"
GEOLOCATION_API_KEY="${21}" GEOLOCATION_API_KEY="${20}"
set +x set +x
missing() { missing() {
@ -35,7 +34,6 @@ missing() {
} }
[[ -n $deployMethod ]] || missing deployMethod [[ -n $deployMethod ]] || missing deployMethod
[[ -n $ipAddress ]] || missing ipAddress
[[ -n $nodeType ]] || missing nodeType [[ -n $nodeType ]] || missing nodeType
[[ -n $entrypointIp ]] || missing entrypointIp [[ -n $entrypointIp ]] || missing entrypointIp
[[ -n $numNodes ]] || missing numNodes [[ -n $numNodes ]] || missing numNodes
@ -278,22 +276,18 @@ EOF
fi fi
args=( args=(
--entrypoint "$entrypointIp:8001"
--gossip-port 8001
--rpc-port 8899 --rpc-port 8899
) )
if [[ $nodeType = blockstreamer ]]; then if [[ $nodeType = blockstreamer ]]; then
args+=( args+=(
--entrypoint "$ipAddress:8001" --blockstream /tmp/solana-blockstream.sock
--gossip-port 9001
--no-voting --no-voting
--dev-no-sigverify --dev-no-sigverify
--blockstream /tmp/solana-blockstream.sock
) )
else else
args+=( args+=(--enable-rpc-exit)
--entrypoint "$entrypointIp:8001"
--gossip-port 8001
--enable-rpc-exit
)
if [[ -n $internalNodesLamports ]]; then if [[ -n $internalNodesLamports ]]; then
args+=(--node-lamports "$internalNodesLamports") args+=(--node-lamports "$internalNodesLamports")
fi fi
@ -363,11 +357,6 @@ EOF
cat >> ~/solana/on-reboot <<EOF cat >> ~/solana/on-reboot <<EOF
~/solana/restart-explorer ~/solana/restart-explorer
echo --- Starting gossip spy node
ln -sfT gossip.log.\$now gossip.log
nohup solana-gossip spy --gossip-port 8001 --gossip-host "$ipAddress" --entrypoint $entrypointIp:8001 > gossip.log.\$now 2>&1 &
sleep 1
head gossip.log
EOF EOF
fi fi