Skip to content

Commit

Permalink
Implement non-GPU mode testcase for colo (solana-labs#6856)
Browse files Browse the repository at this point in the history
  • Loading branch information
danpaul000 authored Nov 9, 2019
1 parent 86ead6a commit 59adc25
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
16 changes: 16 additions & 0 deletions system-test/testnet-performance/colo-cpu-only-perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:
- command: "system-test/testnet-performance/testnet-automation.sh"
label: "COLO performance testnet CPU only"
env:
UPLOAD_RESULTS_TO_SLACK: "true"
CLOUD_PROVIDER: "colo"
TESTNET_TAG: "colo-edge-perf-cpu-only"
ENABLE_GPU: "false"
RAMP_UP_TIME: 0
TEST_DURATION_SECONDS: 600
NUMBER_OF_VALIDATOR_NODES: 4
NUMBER_OF_CLIENT_NODES: 2
CLIENT_OPTIONS: "bench-tps=2=--tx_count 15000 --thread-batch-sleep-ms 250"
ADDITIONAL_FLAGS: ""
agents:
- "queue=colo-deploy"
12 changes: 9 additions & 3 deletions system-test/testnet-performance/testnet-automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function launchTestnet() {
# shellcheck disable=SC2068
# shellcheck disable=SC2086
net/colo.sh create \
-n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" "$maybeEnableGpu" \
-n "$NUMBER_OF_VALIDATOR_NODES" -c "$NUMBER_OF_CLIENT_NODES" $maybeEnableGpu \
-p "$TESTNET_TAG" ${ADDITIONAL_FLAGS[@]/#/" "}
;;
*)
Expand All @@ -129,11 +129,15 @@ function launchTestnet() {
if [[ -n $CHANNEL ]]; then
# shellcheck disable=SC2068
# shellcheck disable=SC2086
net/net.sh restart -t "$CHANNEL" "$maybeClientOptions" "$CLIENT_OPTIONS" $maybeStartAllowBootFailures
net/net.sh restart -t "$CHANNEL" \
"$maybeClientOptions" "$CLIENT_OPTIONS" $maybeStartAllowBootFailures \
--gpu-mode $startGpuMode
else
# shellcheck disable=SC2068
# shellcheck disable=SC2086
net/net.sh restart -T solana-release*.tar.bz2 "$maybeClientOptions" "$CLIENT_OPTIONS" $maybeStartAllowBootFailures
net/net.sh restart -T solana-release*.tar.bz2 \
"$maybeClientOptions" "$CLIENT_OPTIONS" $maybeStartAllowBootFailures \
--gpu-mode $startGpuMode
fi

echo --- wait "$RAMP_UP_TIME" seconds for network throughput to stabilize
Expand Down Expand Up @@ -204,11 +208,13 @@ if [[ -z $NUMBER_OF_VALIDATOR_NODES ]] ; then
exit 1
fi

startGpuMode="off"
if [[ -z $ENABLE_GPU ]] ; then
ENABLE_GPU=false
fi
if [[ "$ENABLE_GPU" = "true" ]] ; then
maybeEnableGpu="--enable-gpu"
startGpuMode="on"
fi

if [[ -z $NUMBER_OF_CLIENT_NODES ]] ; then
Expand Down

0 comments on commit 59adc25

Please sign in to comment.