-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start distributed test with multiple slaves with one command. #721
Comments
I'm -1 on this |
@cgoldberg I have implemented this feature in http://docs.httprunner.top/en/latest/load-test.html I think this feature may do help to the convenience of Locust, and will not influence any current feature. Shall I set up a PR on this ? |
OK, I will keep this feature in HttpRunner. |
@cgoldberg OR @heyman - I am relatively new to Python (2 years experience) and I was wondering why a feature like this would be too hard to maintain or implement -- I am sure your decisions are based on good reasoning, can you help me understand? |
While it might be hard, my reasoning was based on the fact that many great configuration management tools already exist... you should use one to provision and execute your Locust tests if you need a complex distributed setup. |
Yeah, it would be cool to have an example of this. |
@debugtalk |
I had a similar need and I was able to solve it locally with minishift. Later I was able to take it to openshift to get the most out of the hardware with minimum commands. The only down side is that the auto scale will reset your tests. |
The issue is still fuzzy, but the command cannot go @debugtalk |
Description of feature request
Currently when we need to do distributed test, we have to start Locust master and slaves one by one. Suppose our load test machine has 32 cores, we need to run start command 33 times ! Also, when we adjust our Locust scripts, we have to kill all Locust slaves and start again.
Considering this scenario is so common, we can add one parameter (such as
--cpu-cores
) to simplify this job.Expected behavior
With the argument , we can start locust with master and specified number of slaves (default to cpu cores number) at one time.
Actual behavior
To achieve the same goal above, we have to start Locust master first.
And then open another terminal shell, start Locust slaves one by one.
Environment settings (for bug reports)
N/A
Steps to reproduce (for bug reports)
N/A
The text was updated successfully, but these errors were encountered: