Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 760 Bytes

README.md

File metadata and controls

54 lines (43 loc) · 760 Bytes

ddosy

Service which can perform load tests on other services.

Overengineed wrapper around Vegeta.

start the server

./run.sh

API

Run new task

curl --request POST \
  --url http://localhost:4000/run \
  --header 'Content-Type: application/json' \
  --data '
{
 "endpoint": "localhost:4000/status?id=1",
 "load": [
  {
   "duration": "10s",
   "linear": {
    "startRate": 1,
    "endRate": 1
   }
  }
 ],
 "traffic": [
  {
   "weight": 1,
   "payload": ""
  }
 ]
}'

Get status and results of a task

curl --request GET \
  --url 'http://localhost:4000/status?id=1' 

Kill the running task

curl --request DELETE \
  --url http://localhost:4000/kill