-
Notifications
You must be signed in to change notification settings - Fork 314
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
Throttle tasks based on presence of a scheduler #1109
Throttle tasks based on presence of a scheduler #1109
Conversation
Previously Rally has considered a task only throttled if it specified a target throughput. This assumes that there is a meaningful target throughput to specify though. Consider a more complex case where we want to simulate a traffic pattern that changes over the course of a (simulated) day. In that case there is no single "right" target throughput that can be specified. With this commit we consider tasks also throttled if no target throughput is specified but the user has supplied a scheduler explicitly. We assume that the scheduler will use different parameters specified on the task to determine its behavior.
I believe we're going to have other issues here. In the
Where as https://github.com/elastic/rally/pull/1109/files#diff-06ef37921d5086a4d08c6751e12eca6478037b37e832e2e7972d23ba1b3468ceL107 we only pass one parameter. We define the advanced interface as needing just the task. |
It is a precondition of the rally/esrally/driver/scheduler.py Lines 102 to 104 in 8961770
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielmitterdorfer some test failures here. Change in principle makes sense once the int tests are fixed.
The test failure has been caused by a misclassification of the def __init__(self, params, perf_counter=time.perf_counter): The additional parameter is needed for unit tests but prevented classification as a legacy scheduler. I have loosened the check now in 9b72a3c and fixed a follow-up issue uncovered by the tests in c8c70b2. IMHO it's ok to be a bit lenient here because we should remove support for legacy schedulers (along with this check) with Rally 2.1.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously Rally has considered a task only throttled if it specified a
target throughput. This assumes that there is a meaningful target
throughput to specify though. Consider a more complex case where we want
to simulate a traffic pattern that changes over the course of a
(simulated) day. In that case there is no single "right" target
throughput that can be specified.
With this commit we consider tasks also throttled if no target
throughput is specified but the user has supplied a scheduler
explicitly. We assume that the scheduler will use different parameters
specified on the task to determine its behavior.