copr: increase extra concurrency for small coprocessor tasks#37725
copr: increase extra concurrency for small coprocessor tasks#37725ti-chi-bot merged 9 commits intopingcap:masterfrom
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. DetailsReviewer 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>
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit 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_concurrencyharms 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.