sudo pip3 install locust
sudo apt-get update
sudo apt-get install parallel
locust -H https://x.x.x.x -f test/healthz.py --master
printf 'locust -H https://int.openpai.org/ -f test/healthz.py --slave\n%.0s' {1..20} | parallel
sudo pip3 install -r requirements.txt
Prepare configurationfile and save as yml
target-url: x.x.x.x
master-url: x.x.x.x
stress-test-script: xxxxx
Label k8s node with master and slave
kubectl label nodes <node-name> locust-role=master
kubectl label nodes <node1-name> locust-role=slave
...
kubectl label nodes <nodeX-name> locust-role=slave
Start stresstest on kubernetes
./run-k8s.sh -c ${path-to-config}