Rename TEST_DURATION to TEST_DURATION_SECONDS (#6493)
This commit is contained in:
parent
3b9b9b1500
commit
1b1980ad49
|
@ -6,7 +6,7 @@ steps:
|
||||||
CLOUD_PROVIDER: "colo"
|
CLOUD_PROVIDER: "colo"
|
||||||
TESTNET_TAG: "colo-edge-perf-gpu-enabled"
|
TESTNET_TAG: "colo-edge-perf-gpu-enabled"
|
||||||
RAMP_UP_TIME: 0
|
RAMP_UP_TIME: 0
|
||||||
TEST_DURATION: 600
|
TEST_DURATION_SECONDS: 600
|
||||||
NUMBER_OF_VALIDATOR_NODES: 4
|
NUMBER_OF_VALIDATOR_NODES: 4
|
||||||
NUMBER_OF_CLIENT_NODES: 2
|
NUMBER_OF_CLIENT_NODES: 2
|
||||||
CLIENT_OPTIONS: "bench-tps=2=--tx_count 15000 --thread-batch-sleep-ms 250"
|
CLIENT_OPTIONS: "bench-tps=2=--tx_count 15000 --thread-batch-sleep-ms 250"
|
||||||
|
|
|
@ -6,7 +6,7 @@ steps:
|
||||||
CLOUD_PROVIDER: "gce"
|
CLOUD_PROVIDER: "gce"
|
||||||
TESTNET_TAG: "gce-edge-perf-cpu-only"
|
TESTNET_TAG: "gce-edge-perf-cpu-only"
|
||||||
RAMP_UP_TIME: 60
|
RAMP_UP_TIME: 60
|
||||||
TEST_DURATION: 300
|
TEST_DURATION_SECONDS: 300
|
||||||
NUMBER_OF_VALIDATOR_NODES: 10
|
NUMBER_OF_VALIDATOR_NODES: 10
|
||||||
VALIDATOR_NODE_MACHINE_TYPE: "--machine-type n1-standard-16"
|
VALIDATOR_NODE_MACHINE_TYPE: "--machine-type n1-standard-16"
|
||||||
NUMBER_OF_CLIENT_NODES: 1
|
NUMBER_OF_CLIENT_NODES: 1
|
||||||
|
|
|
@ -6,7 +6,7 @@ steps:
|
||||||
CLOUD_PROVIDER: "gce"
|
CLOUD_PROVIDER: "gce"
|
||||||
TESTNET_TAG: "gce-edge-perf-gpu-enabled"
|
TESTNET_TAG: "gce-edge-perf-gpu-enabled"
|
||||||
RAMP_UP_TIME: 0
|
RAMP_UP_TIME: 0
|
||||||
TEST_DURATION: 600
|
TEST_DURATION_SECONDS: 600
|
||||||
NUMBER_OF_VALIDATOR_NODES: 50
|
NUMBER_OF_VALIDATOR_NODES: 50
|
||||||
VALIDATOR_NODE_MACHINE_TYPE: "--machine-type n1-standard-16 --accelerator count=2,type=nvidia-tesla-v100"
|
VALIDATOR_NODE_MACHINE_TYPE: "--machine-type n1-standard-16 --accelerator count=2,type=nvidia-tesla-v100"
|
||||||
NUMBER_OF_CLIENT_NODES: 2
|
NUMBER_OF_CLIENT_NODES: 2
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -e
|
||||||
[[ -n $INFLUX_HOST ]] || INFLUX_HOST=https://metrics.solana.com:8086
|
[[ -n $INFLUX_HOST ]] || INFLUX_HOST=https://metrics.solana.com:8086
|
||||||
|
|
||||||
# TODO: Remove all default values, force explicitness in the testcase definition
|
# TODO: Remove all default values, force explicitness in the testcase definition
|
||||||
[[ -n $TEST_DURATION ]] || TEST_DURATION=300
|
[[ -n $TEST_DURATION_SECONDS ]] || TEST_DURATION_SECONDS=300
|
||||||
[[ -n $RAMP_UP_TIME ]] || RAMP_UP_TIME=0
|
[[ -n $RAMP_UP_TIME ]] || RAMP_UP_TIME=0
|
||||||
[[ -n $NUMBER_OF_VALIDATOR_NODES ]] || NUMBER_OF_VALIDATOR_NODES=2
|
[[ -n $NUMBER_OF_VALIDATOR_NODES ]] || NUMBER_OF_VALIDATOR_NODES=2
|
||||||
[[ -n $NUMBER_OF_CLIENT_NODES ]] || NUMBER_OF_CLIENT_NODES=1
|
[[ -n $NUMBER_OF_CLIENT_NODES ]] || NUMBER_OF_CLIENT_NODES=1
|
||||||
|
@ -114,38 +114,38 @@ launchTestnet() {
|
||||||
echo --- wait "$RAMP_UP_TIME" seconds for network throughput to stabilize
|
echo --- wait "$RAMP_UP_TIME" seconds for network throughput to stabilize
|
||||||
sleep "$RAMP_UP_TIME"
|
sleep "$RAMP_UP_TIME"
|
||||||
|
|
||||||
echo --- wait "$TEST_DURATION" seconds to complete test
|
echo --- wait "$TEST_DURATION_SECONDS" seconds to complete test
|
||||||
sleep "$TEST_DURATION"
|
sleep "$TEST_DURATION_SECONDS"
|
||||||
|
|
||||||
echo --- collect statistics about run
|
echo --- collect statistics about run
|
||||||
declare q_mean_tps='
|
declare q_mean_tps='
|
||||||
SELECT round(mean("sum_count")) AS "mean_tps" FROM (
|
SELECT round(mean("sum_count")) AS "mean_tps" FROM (
|
||||||
SELECT sum("count") AS "sum_count"
|
SELECT sum("count") AS "sum_count"
|
||||||
FROM "'$TESTNET_TAG'"."autogen"."banking_stage-record_transactions"
|
FROM "'$TESTNET_TAG'"."autogen"."banking_stage-record_transactions"
|
||||||
WHERE time > now() - '"$TEST_DURATION"'s GROUP BY time(1s)
|
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s GROUP BY time(1s)
|
||||||
)'
|
)'
|
||||||
|
|
||||||
declare q_max_tps='
|
declare q_max_tps='
|
||||||
SELECT round(max("sum_count")) AS "max_tps" FROM (
|
SELECT round(max("sum_count")) AS "max_tps" FROM (
|
||||||
SELECT sum("count") AS "sum_count"
|
SELECT sum("count") AS "sum_count"
|
||||||
FROM "'$TESTNET_TAG'"."autogen"."banking_stage-record_transactions"
|
FROM "'$TESTNET_TAG'"."autogen"."banking_stage-record_transactions"
|
||||||
WHERE time > now() - '"$TEST_DURATION"'s GROUP BY time(1s)
|
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s GROUP BY time(1s)
|
||||||
)'
|
)'
|
||||||
|
|
||||||
declare q_mean_confirmation='
|
declare q_mean_confirmation='
|
||||||
SELECT round(mean("duration_ms")) as "mean_confirmation_ms"
|
SELECT round(mean("duration_ms")) as "mean_confirmation_ms"
|
||||||
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
||||||
WHERE time > now() - '"$TEST_DURATION"'s'
|
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s'
|
||||||
|
|
||||||
declare q_max_confirmation='
|
declare q_max_confirmation='
|
||||||
SELECT round(max("duration_ms")) as "max_confirmation_ms"
|
SELECT round(max("duration_ms")) as "max_confirmation_ms"
|
||||||
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
||||||
WHERE time > now() - '"$TEST_DURATION"'s'
|
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s'
|
||||||
|
|
||||||
declare q_99th_confirmation='
|
declare q_99th_confirmation='
|
||||||
SELECT round(percentile("duration_ms", 99)) as "99th_percentile_confirmation_ms"
|
SELECT round(percentile("duration_ms", 99)) as "99th_percentile_confirmation_ms"
|
||||||
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
FROM "'$TESTNET_TAG'"."autogen"."validator-confirmation"
|
||||||
WHERE time > now() - '"$TEST_DURATION"'s'
|
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s'
|
||||||
|
|
||||||
curl -G "${INFLUX_HOST}/query?u=ro&p=topsecret" \
|
curl -G "${INFLUX_HOST}/query?u=ro&p=topsecret" \
|
||||||
--data-urlencode "db=${TESTNET_TAG}" \
|
--data-urlencode "db=${TESTNET_TAG}" \
|
||||||
|
@ -191,7 +191,7 @@ TEST_PARAMS_TO_DISPLAY=(CLOUD_PROVIDER \
|
||||||
NUMBER_OF_CLIENT_NODES \
|
NUMBER_OF_CLIENT_NODES \
|
||||||
CLIENT_OPTIONS \
|
CLIENT_OPTIONS \
|
||||||
TESTNET_ZONES \
|
TESTNET_ZONES \
|
||||||
TEST_DURATION \
|
TEST_DURATION_SECONDS \
|
||||||
ADDITIONAL_FLAGS)
|
ADDITIONAL_FLAGS)
|
||||||
|
|
||||||
TEST_CONFIGURATION=
|
TEST_CONFIGURATION=
|
||||||
|
|
Loading…
Reference in New Issue