Last active
December 3, 2019 10:41
-
-
Save mariusmitrofan/941f4bc1e08cbca79a86bafbc46f5c12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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