Skip to content

master/slave k8s deployment files for locust.io(a load testing framework)

Notifications You must be signed in to change notification settings

okansahin/locust-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

k8s deployment for locust.io framework

master/slave deployment files to deploy locust.io framework on Kubernetes.

Information

locust.io is a framework for testing your site in high loads.

If you run more than one slave of Locust on the same computer or the same internet connection, you cannot get the correct results. With these files, you can run unlimited locust.io slave pods on DigitalOcean or Google Cloud.

Deployment files use locustio/locust docker image to build containers. This ensures locust.io is always up to date when pods are created.

master-deployment.yaml includes a load balancer service for connecting externally to locust master web GUI.

Usage

First of all, a locust script file that is reachable from the web.

In master-deployment.yaml you should change the environment variables ##TARGET_URL## and ##LOCUST_SCRIPT_URL## with yours.

and run

kubectl apply -f master-deployment.yaml

and get master pod IP with:

kubectl get pods -o wide

edit slave-deployment.yaml, change replicas variable to how many slave pods you need. Also change ##TARGET_URL##, ##LOCUST_MASTER_HOST_IP## and ##LOCUST_SCRIPT_URL##

and apply slave-deployment.yaml file.

kubectl apply -f slave-deployment.yaml

get the load balancer's external IP to reach GUI.

kubectl get services

License

MIT

About

master/slave k8s deployment files for locust.io(a load testing framework)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published