Locust cofiguration
This chart uses Locust tool for stress testing.
Installation
Locust runs as another standalone Helm release.
Install Locust:
1 |
|
After release installation, some instructions regarding access to WEB UI for Locust printed in stdout.See this section for more information about UI interaction.
Configuration
You can change locust config with the folloving variables in locust-values.yaml
:
image.repository
- repository of locust imageimage.tag
- tag of locust imagemaster.config
- key-value configuration records for locust master (used as container env vars)master.config.locust-host
- URL of target mastermind service. See this doc for detailsmaster.config.target-host
- same asmaster.config.locust-host
master.config.locust-mode-master
- master mode flag. Please, don't change it, because for new versions of locust this flag is mandatory for a master node.master.config.locust-locustfile
- path to the injected locust file. Please, don't change file directory (/locust-tasks/
), because it is fixed mountpoint for pods. The filename itself can have any value, but should be the same as key in the configmap (worker.config.configmapName
).worker.config
- key-value configuration records for locust worker (used as container env vars).worker.config.configmapName
- name of configmap with locustfileworker.config.locust-mode-worker
- worker mode flag. Please, don't change it, because for new versions of locust this flag is mandatory for a worker node.worker.config.locust-locustfile
- path to the injected locust file. Same rules as formaster.config.locust-locustfile
.worker.config.locust-master-node-host
- hostname of the locust master service, which is formatted as<locust_release_name>-master-svc
worker.replicaCount
- number of locust workers
You can find available variables for master and worker configuration from chart desription and official locust documentation (most of the flags and args can be injected through env vars).
NB: The original helm chart image (greenbirdit/locust:0.9.0
)
has outdated locust version and doesn't support most of
the current env variables from the first link above.
Thus master.config.target-host
is used only for compatibility
and must be equal to master.config.locust-host
In the values.yaml
you need to setup the following vars (stressTesting
prefix):
enabled
- enable/disable stress testinglocustFilePath
- path to the locust file (should be in thewaldur/
directory)