Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkeeler/consul-load-test
https://github.com/mkeeler/consul-load-test
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mkeeler/consul-load-test
- Owner: mkeeler
- Created: 2021-12-08T17:01:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T18:53:38.000Z (22 days ago)
- Last Synced: 2024-10-26T04:48:44.349Z (21 days ago)
- Language: Go
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Get started
1. Start a local prometheus server using docker
This step is optioal if you don't need any performance results on the client side.
```bash
make docker-prometheus
```The launched promehteus container uses a static config file, `./hack/local-prometheus.yaml` and listens on
port 19090 on the host.2. Start the load test
Prepare a load test config file, e.g.,:
```json
{
"KV": {
"NumKeys": 50,
"UpdateRate": 2
}
}
```If a prometheus server is enabled like step 1, we can run the load test, listen on port 8080 for
metrics scrape, and retrieve the results from the prometheus server, e.g.,```
./bin/consul-load gen -config ./hack/config.json --http-addr=localhost:8500 -metrics-port=8080 -report-addr=http://localhost:19090 -timeout 10m
```If metrics data is not needed, simply start the load test by
```
./bin/consul-load gen -config ./hack/config.json -timeout 10m
```