Skip to content
/ locust Public

Locust repository with Helm chart deployment to kubernetes

License

Notifications You must be signed in to change notification settings

hansehe/locust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Testing With Locust

Artifact HUB

See locust docs:

Run Helm Chart

helm repo add locust 'https://raw.githubusercontent.com/hansehe/locust/master/helm/charts'
helm install locust locust/locust --version 0.1.0

Requirements

pip install -r src/requirements.txt

Run

Run cmd below and locate locust at http://localhost:8089/

cd src/
locust -f locustfile.py

Run Headless

See official documentation:

cd src/
locust -f locustfile.py --no-web -c 10 -r 10 --run-time 1h30m --stop-timeout 99

# or
python main.py

-c specifies the number of Locust clients to spawn, and -r specifies the hatch rate (number of clients to spawn per second).

Change or expose any of the environment variables in src/.env

Requirements

pip install --upgrade DockerBuildManagement

Run With Web UI

Locate locust at http://localhost:8089/

dbm -build -run service

Run Tests Headless

dbm -test service

Publish Image & Helm

dbm -build -publish

About

Locust repository with Helm chart deployment to kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published