Skip to content

Instantly share code, notes, and snippets.

@abdennour
Created July 4, 2020 11:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdennour/5ae3449d69e88d7c039cec7485b76596 to your computer and use it in GitHub Desktop.
Save abdennour/5ae3449d69e88d7c039cec7485b76596 to your computer and use it in GitHub Desktop.
Generate Load with Apache Benchmark - AB - thru Kubernetes
alias ab_in_k8s='kubectl run test-load --rm --tty -i --restart='Never' --image devth/alpine-bench --command -- /go/bin/main'
ab_in_k8s $@
chmod +x ab;
./ab -n 10000 -c 900 -s 300 ${url}

-n : total number of requests -c : concurrent requests ( 900 simultaneously ) -s : timeout in second

${url}: you link . must finish by slash if it is only domain name.

Check other options in the official doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment