Skip to content

KucicM/ddosy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published