From fa8c5f47ea42929c8a0ec8c431bfb390a046f273 Mon Sep 17 00:00:00 2001 From: Martin-Belton-gov Date: Thu, 23 Nov 2023 13:58:01 +0000 Subject: [PATCH 1/3] Change spawn rate from 1 to 10 --- .github/workflows/load-testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/load-testing.yml b/.github/workflows/load-testing.yml index f84f98ca..fcad1de9 100644 --- a/.github/workflows/load-testing.yml +++ b/.github/workflows/load-testing.yml @@ -79,7 +79,7 @@ jobs: run: sleep 900s - name: Run Load Test - run: locust -f ./LoadTest/locustfile.py --headless -u 50 -r 1 --run-time 60s -H https://20.107.65.156/ + run: locust -f ./LoadTest/locustfile.py --headless -u 50 -r 10 --run-time 60s -H https://20.107.65.156/ - name: Terraform Destroy 3 if: always() From 5ae23d26c0ba2d5963418535840b9f6347ae998b Mon Sep 17 00:00:00 2001 From: Martin-Belton-gov Date: Fri, 24 Nov 2023 13:56:16 +0000 Subject: [PATCH 2/3] Modified Run Load Test --- .github/workflows/load-testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/load-testing.yml b/.github/workflows/load-testing.yml index fcad1de9..33ca2c81 100644 --- a/.github/workflows/load-testing.yml +++ b/.github/workflows/load-testing.yml @@ -79,7 +79,7 @@ jobs: run: sleep 900s - name: Run Load Test - run: locust -f ./LoadTest/locustfile.py --headless -u 50 -r 10 --run-time 60s -H https://20.107.65.156/ + run: locust -f ./LoadTest/locustfile.py --headless -u 5 -r 10 --run-time 300s -H https://20.107.65.156/ - name: Terraform Destroy 3 if: always() From f553d45bad628362ef7251540eaa839bcf936635 Mon Sep 17 00:00:00 2001 From: Martin-Belton-gov Date: Wed, 29 Nov 2023 09:50:42 +0000 Subject: [PATCH 3/3] Reduced the wait time from 900sec to 600sec --- .github/workflows/load-testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/load-testing.yml b/.github/workflows/load-testing.yml index 33ca2c81..c2e59d02 100644 --- a/.github/workflows/load-testing.yml +++ b/.github/workflows/load-testing.yml @@ -75,8 +75,8 @@ jobs: - name: Whitelist Runner IP run: az network nsg rule create -g s185d03-childrens-social-care-cpd-rg --nsg-name s185d03-chidrens-social-care-cpd-sn01-nsg -n GitHubRunnerRule --priority 4000 --source-address-prefixes ${{ env.theIP }} --source-port-ranges '*' --destination-address-prefixes '*' --destination-port-ranges '*' --access Allow --protocol Tcp --description "Allow Access from GitHub Action" - - name: Wait for 15 minutes - run: sleep 900s + - name: Wait for 10 minutes + run: sleep 600s - name: Run Load Test run: locust -f ./LoadTest/locustfile.py --headless -u 5 -r 10 --run-time 300s -H https://20.107.65.156/