-
Notifications
You must be signed in to change notification settings - Fork 3k
-
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
Bring back Step Load Pattern or support a centralized load scheduler to ensure load consistency in distributed mode #1734
Comments
@heyman @cyberw @max-rocket-internet please have a review, thank you! |
Is there anything that wouldnt be solved by #1621 ? (if it does get merged, I mean) |
Apart from the added complexity it creates in the project, I don't really have an opinion on adding it back. But I do think a more general approach might be better for everyone, for example what is detailed in #1632 could be used for step load or any load test where the user wants to tweak settings from the web UI. |
How is this related to bring step load back? If the master is restarted then forget it, your load test is over and metrics are lost. But workers coming and going should be OK in the current version of locust? I recommend using a using a |
Yes we can have some mechanism to ensure the healthy of master node for example pdb, or back up the master state for recovery. While for the worker state recovery, in previous step load it's using a centralized way to distribute the traffic, so when a worker leaves or joins the locust cluster the master will redistribute the latest load tasks to all the workers, it'll recover the previous load status. And in current way of custom load shape, the load plan is being executed at worker side. So when a worker restarts, it'll run from the start. For example if a test plan is a step load plan from 10 to 100 users, and some workers restarts when it hits the 50 users, the workers will run from the start with the initial load, and it's not the previous load of 50 users. |
There's no example locustfile, but it claims that "The master is now responsible to compute the distribution of users and then dispatching a portion of this distribution to each worker. " which seems to support a centralized load scheduler. While it seems the load plan is still coupled with locustfile, rather then being exposed in locust master webui or web api. |
I'd love to see a simple user friendly solution (probably based on load test shapes) that does something similar to what step load did. Maybe after #1724 1621 though. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself! |
Is your feature request related to a problem? Please describe.
With the previous Step Load Pattern, it's much easier for us to change the load plan from UI portal or with command line parameters:
It might bring a consistency issue when using custom load shape in distributed mode:
Describe the solution you'd like
I'd like to have Step Load Pattern back, or another centralized load scheduler to ensure load consistency in distributed mode.
The text was updated successfully, but these errors were encountered: