-
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
Starting load test from the cli but monitoring from the web UI #831
Comments
I'm -1 on changing that functionality. |
My use case is that I want to run a continuous load test in headless mode and monitor results without looking at process logs. This sounds quite reasonable to me. Care to explain your -1? |
@ahmetb I thought that you were proposing to remove the setup screen where you define users and hatch rate and do everything via CLI... but now I understand your use case. It's definitely a reasonable feature to invoke a test from the CLI while still allowing you to monitor via the web UI. However I don't want to replace the manual start we currently use... I'd want tboth ways of configuring a test to co-exist. so to summarize this feauture..
The only edge case I can think of is if Now the rub... We lack development resources at the moment... I personally don't have time to devote to implementing this, but I will review a PR if you submit one (it should also include an update to the docs). |
Yes!
I think most load test software assumes hatch rate of "all at once" by default. So I think you can infer that you should start the test if both specified, without introducing any new flags. I don't need this feature right now, just wanted to put it in the backlog to improve the project. |
As a bit of a hack to gain a programmatic interface you could start locust with the web UI and then make a POST request to the E.g. Then GET |
@nealedj How do I pass run-time parameter through CURL -XPOST? |
@nityasantoshi, that is not currently supported |
While there is a possible use case for this, it is not very common, so I will close it (feel free to reopen if you absolutely want the feature and are willing to create a PR for it :) There are other reporting solutions that work well with --no-web, like using https://github.com/SvenskaSpel/locust-plugins (Timescale + Grafana) |
I'm making a fix for this... |
Add --autostart and --autoquit parameters, fixes #831
I think this is a feature request. I'm expecting that I can use locust CLI to start the load test, but monitor the results from the web UI.
Description of issue / feature request
When I run
locust --host=... -c 10 -r 5
it doesn't start anything. Because it starts the web UI, which presents the user a form to manually start the load test.Expected behavior
I expect locust to start the test and let me monitor the results from the web UI.
Actual behavior
locust
ignores the-c
and-r
when--no-web
is specified.Environment settings (for bug reports)
The text was updated successfully, but these errors were encountered: