Skip to content

Commit

Permalink
Merge pull request #54 from mogren/perf-test-issues
Browse files Browse the repository at this point in the history
Fetch ASG name from config file
  • Loading branch information
Claes Mogren authored Sep 28, 2020
2 parents 88917ec + cc28598 commit 24f2d20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion scripts/lib/performance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ function run_performance_test_730_pods() {
}

function scale_nodes_for_5000_pod_test() {
AUTO_SCALE_GROUP_NAME=$(aws autoscaling describe-auto-scaling-groups | jq --raw-output '.AutoScalingGroups[0].AutoScalingGroupName')
# aws autoscaling describe-auto-scaling-groups
# AUTO_SCALE_GROUP_NAME=$(aws autoscaling describe-auto-scaling-groups | jq --raw-output '.AutoScalingGroups[0].AutoScalingGroupName')
echo "${CLUSTER_CONFIG}"
grep asg-name "${CLUSTER_CONFIG}"

AUTO_SCALE_GROUP_NAME=$(grep -A6 cni-test-multi-node-mng "${CLUSTER_CONFIG}" | grep asg-name | awk '{print $2}')

echo "$AUTO_SCALE_GROUP_NAME"
aws autoscaling update-auto-scaling-group \
--auto-scaling-group-name "$AUTO_SCALE_GROUP_NAME" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if [[ "$RUN_PERFORMANCE_TESTS" == true ]]; then
echo "Running performance tests on current image:"
echo ""
START=$SECONDS
run_performance_test_130_pods
# run_performance_test_130_pods
scale_nodes_for_5000_pod_test
run_performance_test_730_pods
run_performance_test_5000_pods
Expand Down

0 comments on commit 24f2d20

Please sign in to comment.