Skip to content

Instantly share code, notes, and snippets.



Created Jul 4, 2020
What would you like to do?
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