Skip to content

Commit

Permalink
readme - distributed load testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Mar 12, 2021
1 parent d658c93 commit c29cc39
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Toc
* [Adding HTTP Headers](#adding-http-headers)
* [Disabling HTTP keep-alive](#disabling-http-keep-alive)
* [x509 Authentication](#x509-authentication)
* [Distributed Load Testing](#distributed-load-testing)
- [Importing cassowary as a module](#importing-cassowary-as-a-modulelibrary)
- [Versioning](#versioning)
- [Contributing](#contributing)
Expand Down Expand Up @@ -287,6 +288,32 @@ Starting Load Test with 1000 requests using 10 concurrent users

```

### Distributed Load Testing
You can run cassowary in a distributed way if you need to scale up the load testing on more than one machine. Simplest way to do that is having access to a Kubernetes cluster. Use the batch type in Kubernetes and in the *spec.paralellism* key you can specify how many instances of cassowary you want to run simultaneously:

```yaml
apiVersion: batch/v1
kind: Job
metadata:
name: cassowary
spec:
parallelism: 10
template:
spec:
containers:
- command: ["cassowary", "run", "-u", "http://my-microservice.com:8000", "-c", "1", "-n", "10"]
image: rogerw/cassowary:v0.14.0
name: cassowary
restartPolicy: Never
```
Just apply this yaml like so:
```bash
$ kubectl apply -f cassowary.yaml
```


Importing cassowary as a module/library
--------

Expand Down

0 comments on commit c29cc39

Please sign in to comment.