Open JamesLaverack opened 5 years ago
A couple of workarounds are possible. The https://hub.docker.com/r/weaveworksdemos/load-test image is available and appears to work:
docker run weaveworksdemos/load-test:0.1.1 -h sock-shop.example.com -c 5 -r 10
You can also ignore the run script and execute locust
directly. The change appears to be moving from --num-request
to --run-time
:
locust --host=http://sock-shop.example.com -f locustfile.py --clients 10 --hatch-rate=5 --run-time=1m --no-web --only-summary
Running the load test gives an
error: no such option: --num-request
message and exits.Reproduction
pip install locustio
runLocust.sh
with argumentsor, using Docker
docker build -t load-test .
docker run load-test
with argumentsExpected Behavior
Locust executes.
Actual Behavior
The following error:
or, using Docker
Environment