-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
copr: increase extra concurrency for small coprocessor tasks #37725
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
@wshwsh12 PTAL |
17e9b58
to
fdd00c2
Compare
@you06 |
I'm fixing the tests broken by this PR. |
Signed-off-by: you06 <you1474600@gmail.com> for test Signed-off-by: you06 <you1474600@gmail.com> fix bug Signed-off-by: you06 <you1474600@gmail.com> new formula for concurrency & add test Signed-off-by: you06 <you1474600@gmail.com> fix comment Signed-off-by: you06 <you1474600@gmail.com> remove unused function Signed-off-by: you06 <you1474600@gmail.com> set private concurrency for small tasks Signed-off-by: you06 <you1474600@gmail.com> fix build Signed-off-by: you06 <you1474600@gmail.com> fix panic && add test Signed-off-by: you06 <you1474600@gmail.com> fix bug and test Signed-off-by: you06 <you1474600@gmail.com> fix tests Signed-off-by: you06 <you1474600@gmail.com> fix tests Signed-off-by: you06 <you1474600@gmail.com>
Signed-off-by: you06 <you1474600@gmail.com>
Signed-off-by: you06 <you1474600@gmail.com>
Co-authored-by: Shenghui Wu <wshwsh12@outlook.com>
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 51e4eac
|
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
Any bench result to show the great improvement of this change? |
I attached the bench result to the description. |
When there many requests has fan out characteristics, the test result including p99 should be much more better? |
@zhangjinpeng1987 |
What problem does this PR solve?
Issue Number: close #37724
Problem Summary:
What is changed and how it works?
When there are many small coprocessor tasks, the default value of
tidb_distsql_scan_concurrency
harms the latency. This PR increases extra concurrency when we exactly know there are small coprocessor tasks.I tested this PR with the script.
Test result with different tidb_distsql_scan_concurrency before this PR
Tested with query shared into 1000 regions and got the following result(avg of 100 round test):
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.