Closed kob555 closed 4 years ago
I'm not able to reproduce this. Here's the output I got after running this for a little while:
(locust) ~/projects/locust (master) § ls -l /tmp/locust-test | grep TaskSetA | wc -l
303
(locust) ~/projects/locust (master) § ls -l /tmp/locust-test | grep TaskSetB | wc -l
2707
I tested it in both Python 2.7 and Python 3.8 on Mac OS. Something windows related perhaps?
Thank you for your answer. It is very strange. Today, I'm not able to reproduce it anymore. For yesterday, I have many recorded test results, which show the discrepancy, but today, it works fine both on windows and inside a docker container. It could indeed be related to windows. Wouldn't be the first time.
Ok, happy it got solved somehow :).
Describe the bug
wa
, LocustB has weight set towb
.wa / (wa + wb)
Expected behavior
wa / (wa + wb) * 100%
of the executions are TaskSetA.Actual behavior
wa / (wa + wb) * 100%
, e.g. for a 1:9 defined ratio, the actual result is around 3:7.Steps to reproduce
minimal.py
Start it:
Go to web interface: http://localhost:8089/ Start swarming with these parameters:
Press stop after a while and count the files in the output directory:
There is a high discrepancy between the defined ratio 1:9 and the actual ratio of the files.
Environment settings