locustswarm
by gicara
A chart to install Locust swarmdmin. Locust is a scalable and dynamic load testing tool written in Python. Swarmadmin is a web interface to manage the swarm on a Kubernetes cluster. This chart will setup everything required to run a full distributed locust environment with any amount of workers. ```console kubectl create configmap my-loadtest-lib --from-file path/to/your/lib/ ``` And then install the chart passing the names of those configmaps as values: ```console helm repo add swarmadmin https://mms-gianni.github.io/swarmadmin helm install swarmadmin mms-gianni/swarmadmin ```
About this chart
locust swarmadmin
Locust is an easy to use, scriptable and scalable performance testing tool. But it is not very flexible. Specially when it comes to run multiple different configured loadtests on a kubernetes cloud.
This chart will setup everything required to run the locust swarmadmin which is able to start multiple locust environment with any amount of workers. It comes with a simple to use web UI and a API.
Installation on Kubernetes
The results are exported and stored in Prometheus. They can easily be displayed on a grafana board ( ID: 15109 )
https://grafana.com/grafana/dashboards/15109
How to install this chart
The Helm installation is based on Deliveryhero's helm charts. (Version ~0.20.2)
Installation from git repo
cd k8s/
helm install -f values.yaml my-release . -n locustswarm --create-namespace
helm upgrade -f values.yaml my-release .
Add Delivery Hero public chart repo:
helm repo add swarmadmin https://mms-gianni.github.io/swarmadmin
A simple install with default values:
helm install swarmadmin/swarmadmin
To install the chart with the release name my-release:
helm install my-release swarmadmin/swarmadmin
To install with some set values:
helm install my-release swarmadmin/swarmadmin --set values_key1=value1 --set values_key2=value2
To install with custom values file:
helm install my-release swarmadmin/swarmadmin -f values.yaml
Deploy locustswarm with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has locustswarm on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlocustswarm is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply