From b7efa1001600ce45788dc657e907486c0aa66022 Mon Sep 17 00:00:00 2001 From: Ben Napolitan Date: Wed, 17 Jun 2020 17:56:32 -0400 Subject: [PATCH] Create data file after scale test. --- scripts/lib/common.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/lib/common.sh b/scripts/lib/common.sh index 5ea7c69248..d1f0cbb9f4 100644 --- a/scripts/lib/common.sh +++ b/scripts/lib/common.sh @@ -76,5 +76,16 @@ function run_scale_test_130_pods() { done echo "" DEPLOY_DURATION=$((SECONDS - DEPLOY_START)) + + now="pod-130-scale-test-data-$(date +"%m-%d-%Y-%T").csv" + echo $now + + cat << EOF > $now + $(date +"%m-%d-%Y-%T") + $((SCALE_UP_DURATION_ARRAY[0])), $((SCALE_DOWN_DURATION_ARRAY[0])) + $((SCALE_UP_DURATION_ARRAY[1])), $((SCALE_DOWN_DURATION_ARRAY[1])) + $((SCALE_UP_DURATION_ARRAY[2])), $((SCALE_DOWN_DURATION_ARRAY[2])) + EOF + echo "TIMELINE: 130 Pod scale test took $DEPLOY_DURATION seconds." }