-
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
domain: support plan replayer dump workers running in concurrency #39347
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. |
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"` | ||
PlanReplayerDumpWorkerConcurrency uint `toml:"plan-replayer-dump-worker-concurrency" json:"plan-replayer-dump-worker-concurrency"` |
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 a SQL variable instead of a config item? SQL variables are much easier to use.
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 can't adjust worker count in runtime thus we use config.
} | ||
<-do.exit | ||
do.planReplayerHandle.planReplayerTaskDumpHandle.Close() |
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.
Do we need to also put Close
in defer?
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.
updated.
7940d36
to
63ad248
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 12e838a158f17943186a76a74fff1987f7d5cc49
|
/merge |
15df29e
to
164f958
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: dd20da9
|
/run-check_dev_2 |
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
Signed-off-by: yisaer disxiaofei@163.com
What problem does this PR solve?
Issue Number: ref #38779
Problem Summary:
What is changed and how it works?
support plan replayer dump workers running in concurrency
Check List
Tests
https://pingcap.feishu.cn/docx/Ak9WdC71No5PybxifvocUK59nRX?from=from_lark_index_search
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.