-
Notifications
You must be signed in to change notification settings - Fork 409
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
add min tso scheduler for each resource group #8072
add min tso scheduler for each resource group #8072
Conversation
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
bool updateMinQueryId(const MPPQueryId & query_id, bool retired, const String & msg, LoggerPtr log); | ||
}; | ||
|
||
void scheduleWaitingQueries(GroupEntry & entry, MPPTaskManager & task_manager, LoggerPtr log); |
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.
Will call MinTSOScheduler::scheduleImpl()
, so should not make it as member function of GroupEntry
.
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
@@ -110,11 +110,6 @@ ExecutionResult PipelineExecutor::execute(ResultHandler && result_handler) | |||
} | |||
LOG_TRACE(log, "query finish with {}", exec_context.getQueryProfileInfo().toJson()); | |||
|
|||
// For read_ru, only report it to GAC for now. | |||
LocalAdmissionController::global_instance->consumeResource( |
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.
will consume read_ru in next pr
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.
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
…sh into resource_control_part_4
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
…sh into resource_control_part_4
Co-authored-by: SeaRise <[email protected]>
Co-authored-by: SeaRise <[email protected]>
/run-all-tests |
Signed-off-by: guo-shaoge <[email protected]>
…sh into resource_control_part_4
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
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.
Others LGTM
auto elapsed_second = std::chrono::duration_cast<std::chrono::seconds>(elspased).count(); | ||
return elapsed_second * fill_rate; | ||
auto elapsed_ms = std::chrono::duration_cast<std::chrono::milliseconds>(elspased).count(); | ||
return static_cast<double>(elapsed_ms * fill_rate) / 1000; |
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.
It looks like / 1000
doesn't need to be called multiple times.
fill_rate_ms = fill_rate/1000
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.
done
Signed-off-by: guo-shaoge <[email protected]>
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SeaRise, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@guo-shaoge: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This reverts commit 939a18d. Signed-off-by: guo-shaoge <[email protected]>
What problem does this PR solve?
Issue Number: close #7919
Problem Summary:
What is changed and how it works?
min tso hard limit
, there is a global_estimated_threads_usage.Check List
Tests
Side effects
Documentation
Release note