Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Tunnel SOLANA_DEFAULT_METRICS_RATE into Snap nodes #682

Merged
merged 2 commits into from
Jul 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions ci/testnet-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# This script must be run by a user/machine that has successfully authenticated
# with GCP and has sufficient permission.
#

cd "$(dirname "$0")/.."

if [[ -z $SOLANA_METRICS_CONFIG ]]; then
Expand All @@ -26,7 +25,7 @@ edge)
;;
beta)
publicUrl=testnet.solana.com
publicIp=# # Use default value
publicIp="" # Use default value
;;
*)
echo Error: Unknown SOLANA_SNAP_CHANNEL=$SOLANA_SNAP_CHANNEL
Expand Down Expand Up @@ -76,13 +75,18 @@ for info in "${vmlist[@]}"; do
(
SECONDS=0
echo "--- $vmName in zone $vmZone $nodePosition"
commonNodeConfig="\
rust-log=$RUST_LOG \
default-metrics-rate=$SOLANA_DEFAULT_METRICS_RATE \
metrics-config=$SOLANA_METRICS_CONFIG \
"
if $leader; then
nodeConfig="mode=leader+drone metrics-config=$SOLANA_METRICS_CONFIG"
nodeConfig="mode=leader+drone $commonNodeConfig"
if [[ -n $SOLANA_CUDA ]]; then
nodeConfig="$nodeConfig enable-cuda=1"
fi
else
nodeConfig="mode=validator metrics-config=$SOLANA_METRICS_CONFIG leader-address=$publicIp"
nodeConfig="mode=validator leader-address=$publicIp $commonNodeConfig"
fi

set -x
Expand Down
1 change: 1 addition & 0 deletions multinode-demo/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [[ -d "$SNAP" ]]; then # Running inside a Linux Snap?
mkdir -p "$SNAP_DATA"/{drone,leader,validator}

SOLANA_METRICS_CONFIG="$(snapctl get metrics-config)"
SOLANA_DEFAULT_METRICS_RATE="$(snapctl get default-metrics-rate)"
SOLANA_CUDA="$(snapctl get enable-cuda)"
RUST_LOG="$(snapctl get rust-log)"

Expand Down