jmeter-operator
jmeter-operator copied to clipboard
stop the test
how can I stop a running test?
Call the stoptest.sh script from the jmeter-master pod should work.
# check the jmeter-master pod name first localhost$ kubectl -n tqa get pods # open a shell then run stoptest.sh localhost$ kubectl exec -i -t -n tqa tqa-loadtest-jmeter-master-your-pod-name "--" sh -c "clear; (bash || ash || sh)" root@tqa-loadtest-jmeter-master-your-pod-name:/# /jmeter/apache-jmeter-5.0/bin/stoptest.sh
Or you can make a script.
https://github.com/kubernauts/jmeter-operator/blob/9de46870386bb5438e7183f41e99add44d0cc6ca/start_test.sh#L44
Open the jmeter-opereator/start_test.sh and change the last line as follows:
kubectl -n $namespace exec -ti $master_pod -- /jmeter/apache-jmeter-5.0/bin/stoptest.sh
and save it to jmeter-operator/stop_test.sh file.
Though I didn't try above script, however, it might work well. ;)
Good luck.