Skip to content

Instantly share code, notes, and snippets.

@mariusmitrofan
Last active December 3, 2019 10:41
Show Gist options
  • Save mariusmitrofan/941f4bc1e08cbca79a86bafbc46f5c12 to your computer and use it in GitHub Desktop.
Save mariusmitrofan/941f4bc1e08cbca79a86bafbc46f5c12 to your computer and use it in GitHub Desktop.
export API_KEY=the api key you received in your mailbox
cat > bombard.json <<EOF
{
"numClients": 500000,
"hatchRate": 500000,
"runTime": 300,
"maxThreads": 10,
"hostname": "netbears.com",
"protocol": "https",
"workflow": [
{
"path": "/devops/",
"method": "GET",
"headers": {
"Content-Type": "application/json"
}
},
{
"path": "/blog/",
"method": "GET",
"headers": {
"Content-Type": "application/json"
}
},
{
"path": "/training/",
"method": "GET",
"headers": {
"Content-Type": "application/json"
}
}
]
}
EOF
curl \
-X POST \
-d "@bombard.json" \
-H "x-api-key: ${API_KEY}" \
-H "Content-Type: application/json" \
https://beta.rungutan.com/start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment