This project aims to stress any kind web based project using Vegeta.
The installation process from source in the official docs
A target is a file that contains the values of every HTTP request to be sent. You can find examples at targets directory
brew update && brew install vegeta
| Parameter | Required | Description |
|---|---|---|
| -rate | optional | Number of requests per time unit (default: 1/min |
| -duration | optional | Duration of attack (default: 1min) |
| -units | optional | Units of rate and duration [m,s] (default: m for minutes) |
| -desc | optional | Description of attack, used for naming output files |
| -target | required | Location of target file |
Every output will be saved in results folder with the datetime the attack was performed.
| File | Type | Description |
|---|---|---|
| YYYYMMDD_HHMM_desc.csv | CSV | A file that contains every HTTP request details |
| YYYYMMDD_HHMM_desc-plot.html | HTML | A file with latency plot |
| YYYYMMDD_HHMM_desc-summary.json | JSON | JSON with summary of the attack |
sh target.sh -target targets/dco-fastapi-local/hello.txt
sh target.sh -target targets/dco-fastapi-local/hello.txt -duration 5 -rate 100 -desc dco
sh target.sh -target targets/dco-fastapi-local/hello.txt -rate 150 -desc dco
sh target.sh -target targets/dco-fastapi-local/hello.txt -units s -duration 10 -rate 2