Locust is an open source load testing tool.
You can use it :
- locally on your machine/servers
- with Docker 🐳
- with Kubernetes ☸
Last Locust version tested: 1.5.1
kubectl create namespace locust
kubectl config set-context --current --namespace=locustlocust-tasks contains your script and dependencies for load testing.
Your script must have the name locustfile.py.
kubectl create configmap locust-configmap --from-file=locust-tasks/kubectl apply -f k8s/locust-master-deployment.yaml
kubectl apply -f k8s/locust-worker-deployment.yamlkubectl apply -f k8s/locust-worker-hpa.yamlkubectl get svc locust-master -o jsonpath="{.status.loadBalancer.ingress[0].ip}"http://[external_ip]:8089
kubectl delete namespace locust