Skip to content

Locust Performance test as code with Distributed Load Testing using Docker and Kubernetes

License

Notifications You must be signed in to change notification settings

Avinash-Kannan/performance-locust-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️⚠️ README Under Construction ⚠️⚠️


Locust Performance test as code with Distributed Load Testing using Docker and Kubernetes


Rough Draft Steps

  • Install python, docker/Colima, minikube, kubectl

  • Draft a locust test skeleton

  • pull locust image Run => docker pull locustio/locust

  • Create a docker file with base image as locust including required test skeleton and build docker image using below command Run => docker build -t blazedemo/locust:v1 .

  • Minikube is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node Run => minikube start

  • Create a namespace for the local cluster   Run => kubectl create namespace locust

  • To deploy helm templates Run => helm upgrade --install local-perf-locust locust-helm-chart --set image.tag=v3 --namespace locust

  • Check if master and worker pods are up and running => kubectl get pods -n locust

  • Log into Pods => kubectl exec local-perf-locust-master-56bdc45f64-r7nmt -it sh -n locust

  • To access WEB UI : => kubectl --namespace locust port-forward service/local-perf-locust 8089:8089 => URL : http://localhost:8089

  • To uninstall Helm templates Run => helm uninstall local-perf-locust -n locust

About

Locust Performance test as code with Distributed Load Testing using Docker and Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published