Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Parametrise the traffic generator load
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Jun 1, 2022
1 parent daa7834 commit 34bab31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,22 @@ To update specific microservices, add their names to the patch target:
value: 6.1.6
```

To test rollout failures use a non existing version such as `99.0.0`.
To test rollout failures use a non-existing version such as `99.0.0`.

## Increase the traffic load

To increase the traffic load, you can set the QPS value with:

```yaml
patches:
- target:
kind: Kustomization
name: "(demo-client)"
patch: |
- op: add
path: /spec/postBuild/substitute/qps
value: "2"
```

## List microservices

Expand Down
2 changes: 1 addition & 1 deletion client/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
while true; do
hey -z 10m -q 1 -c 1 http://demo-frontend-app &
hey -z 10m -q 1 -c 1 -H 'X-Canary: insider' http://demo-frontend-app &
hey -z 10m -q 1 -c 2 -m POST -d '{a="b"}' http://demo-frontend-app/api/echo &
hey -z 10m -q ${qps:=1} -c 2 -m POST -d '{a="b"}' http://demo-frontend-app/api/echo &
hey -z 10m -q 1 -c 1 -m POST -d '{a="b"}' http://demo-mobile-app/api/echo &
hey -z 10m -q 1 -c 1 -m POST -d '{a="b"}' http://demo-admin-app/api/echo &
hey -z 10m -q 1 -c 1 http://demo-advert-app/status/500 &
Expand Down
1 change: 1 addition & 0 deletions deploy/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ spec:
postBuild:
substitute:
app_name: demo-client
#qps: "1"

0 comments on commit 34bab31

Please sign in to comment.