-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor: support save partition stats in concurrency #38239
executor: support save partition stats in concurrency #38239
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. |
b185822
to
97a4d41
Compare
Signed-off-by: yisaer <[email protected]> add time log Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> fix ctx Signed-off-by: yisaer <[email protected]> add log Signed-off-by: yisaer <[email protected]> fix Signed-off-by: yisaer <[email protected]> fix Signed-off-by: yisaer <[email protected]> fix Signed-off-by: yisaer <[email protected]> fix Signed-off-by: yisaer <[email protected]>
adfab8f
to
e304632
Compare
Signed-off-by: yisaer <[email protected]>
5574e7b
to
f2fd3ef
Compare
Signed-off-by: yisaer <[email protected]>
/run-build |
This reverts commit 0e071e1.
Signed-off-by: yisaer <[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.
rest LGTM
Signed-off-by: yisaer <[email protected]>
Signed-off-by: yisaer <[email protected]>
29964f9
to
781a619
Compare
Signed-off-by: yisaer <[email protected]>
EnforceMPP bool `toml:"enforce-mpp" json:"enforce-mpp"` | ||
StatsLoadConcurrency uint `toml:"stats-load-concurrency" json:"stats-load-concurrency"` | ||
StatsLoadQueueSize uint `toml:"stats-load-queue-size" json:"stats-load-queue-size"` | ||
AnalyzePartitionConcurrencyQuota uint `toml:"analyze-partition-concurrency-quota" json:"analyze-partition-concurrency-quota"` |
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.
How about using an SQL variable instead of a config item?
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.
We use config is due to AnalyzePartitionConcurrencyQuota is used to pre-create the session pool in domain when tidb-server started.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4ff0abb
|
@Yisaer: 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. |
/run-unit-test |
Signed-off-by: yisaer [email protected]
What problem does this PR solve?
Issue Number: ref #35142
Problem Summary:
save partition stats in single thread is time-consuming.
What is changed and how it works?
Support saving stats in concurrency with the session hold by the domain.
Check List
Tests
https://pingcap.feishu.cn/docx/QfDid1XOuoQYLUxDFrycvUpFnqb
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.