Skip to content

Commit

Permalink
Update libraries and use spawn rate in Locust (#167)
Browse files Browse the repository at this point in the history
petechd authored Aug 6, 2024
1 parent 30160b5 commit 7fbd1ea
Showing 5 changed files with 856 additions and 884 deletions.
1,710 changes: 841 additions & 869 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ helm tiller run \
- runner-benchmark \
- k8s/helm \
- --set requestsJson=requests/census_individual_gb_eng.json \
- --set locustOptions="--clients 1000 --hatch-rate 50 -L WARNING" \
- --set locustOptions="--clients 1000 --spawn-rate 50 -L WARNING" \
- --set host=https://your-runner.gcp.dev.eq.ons.digital \
- --set container.image=europe-west2-docker.pkg.dev/ons-eq-ci/docker-images/eq-benchmark-deploy-image:latest
```
12 changes: 6 additions & 6 deletions doc/performance-investigations/TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -6,14 +6,14 @@ Link to Github branch with proposed changes.

## Benchmark profile

| Option | Value |
|--------|-------|
| Requests file | |
| Run time | |
| Option | Value |
|------------------------|-------|
| Requests file | |
| Run time | |
| User wait time minimum | |
| User wait time maximum | |
| Clients | |
| Hatch rate | |
| Clients | |
| Spawn rate | |

## Results

14 changes: 7 additions & 7 deletions doc/performance-testing/TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,14 @@

## Benchmark settings

| Setting | Value |
| --- | ---|
| Setting | Value |
|----------------------| ---|
| Clients per instance | 200 |
| Clients hatch rate | 200 |
| Wait time minimum | 1 |
| Wait time maximum | 2 |
| Requests JSON | census_household_gb_eng.json |
| Runtime | 20m |
| Clients spawn rate | 200 |
| Wait time minimum | 1 |
| Wait time maximum | 2 |
| Requests JSON | census_household_gb_eng.json |
| Runtime | 20m |

## Results

2 changes: 1 addition & 1 deletion k8s/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ requestsJson: 'requests/test_checkbox.json'
userWaitTimeMinSeconds: 1
userWaitTimeMaxSeconds: 2
includeSchemaUrlInToken: 'false'
locustOptions: '--headless --users 800 --hatch-rate 10 --loglevel=CRITICAL --run-time=2h --only-summary'
locustOptions: '--headless --users 800 --spawn-rate 10 --loglevel=CRITICAL --run-time=2h --only-summary'
output:
bucket: ''
directory: ''

0 comments on commit 7fbd1ea

Please sign in to comment.