Skip to content
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

scheduler: balance-hot-region-scheduler supports TiFlash hot-write #3900

Merged
merged 19 commits into from
Aug 7, 2021

Conversation

HunDunDM
Copy link
Member

@HunDunDM HunDunDM commented Jul 22, 2021

Signed-off-by: HunDunDM hundundm@gmail.com

related #3671

What problem does this PR solve?

What is changed and how it works?

scheduler: balance-hot-region-scheduler supports TiFlash hot-write

Check List

Tests

  • Unit test

Code changes

  • Has configuration change

Side effects

Related changes

Release note

Support hot-region balance scheduling for TiFlash

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 22, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Yisaer
  • lhy1024

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 22, 2021
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 26, 2021
@codecov
Copy link

codecov bot commented Jul 27, 2021

Codecov Report

Merging #3900 (e314dac) into master (21fef03) will increase coverage by 0.03%.
The diff coverage is 93.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3900      +/-   ##
==========================================
+ Coverage   74.55%   74.58%   +0.03%     
==========================================
  Files         247      247              
  Lines       25276    25372      +96     
==========================================
+ Hits        18844    18924      +80     
- Misses       4755     4768      +13     
- Partials     1677     1680       +3     
Flag Coverage Δ
unittests 74.58% <93.65%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/config/config.go 74.84% <ø> (ø)
server/core/store.go 80.00% <ø> (ø)
server/schedulers/hot_region.go 83.16% <84.88%> (-2.38%) ⬇️
pkg/mock/mockcluster/mockcluster.go 95.85% <95.23%> (+0.13%) ⬆️
server/schedulers/utils.go 94.96% <98.40%> (+2.07%) ⬆️
server/config/persist_options.go 91.53% <100.00%> (+0.03%) ⬆️
server/schedule/filter/filters.go 90.69% <100.00%> (ø)
server/schedule/region_scatterer.go 85.08% <100.00%> (ø)
server/schedulers/hot_region_config.go 86.71% <100.00%> (+0.76%) ⬆️
server/schedulers/shuffle_hot_region.go 65.65% <100.00%> (+0.35%) ⬆️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21fef03...e314dac. Read the comment docs.

HunDunDM added a commit to HunDunDM/pd that referenced this pull request Jul 28, 2021
HunDunDM added a commit to HunDunDM/pd that referenced this pull request Jul 28, 2021
Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot ti-chi-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 30, 2021
@HunDunDM HunDunDM marked this pull request as ready for review August 3, 2021 10:25
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 3, 2021
@HunDunDM HunDunDM added component/scheduler Scheduler logic. priority/P1 The issue has P1 priority. labels Aug 3, 2021
@HunDunDM HunDunDM marked this pull request as draft August 3, 2021 13:12
@ti-chi-bot ti-chi-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 3, 2021
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 3, 2021
@HunDunDM HunDunDM force-pushed the tiflash-hot-write-sche branch 2 times, most recently from 9c6df82 to 105cef3 Compare August 4, 2021 10:18
@HunDunDM HunDunDM marked this pull request as ready for review August 4, 2021 10:23
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 4, 2021
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 6, 2021
pkg/mock/mockcluster/mockcluster.go Outdated Show resolved Hide resolved
pkg/mock/mockcluster/mockcluster.go Outdated Show resolved Hide resolved
…hot-write-sche

# Conflicts:
#	server/core/store.go
Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 6, 2021
Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 6, 2021
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nolouch
Copy link
Contributor

nolouch commented Aug 7, 2021

/merge

@ti-chi-bot
Copy link
Member

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: d69523c

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 7, 2021
@ti-chi-bot ti-chi-bot merged commit 8481fab into tikv:master Aug 7, 2021
HunDunDM added a commit to HunDunDM/pd that referenced this pull request Aug 10, 2021
Signed-off-by: HunDunDM <hundundm@gmail.com>
@HunDunDM HunDunDM deleted the tiflash-hot-write-sche branch August 10, 2021 09:59
@HunDunDM HunDunDM changed the title scheduler: balance-hot-region-scheduler supports TiFlash scheduler: balance-hot-region-scheduler supports TiFlash hot-write Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/scheduler Scheduler logic. priority/P1 The issue has P1 priority. release-note Denotes a PR that will be considered when it comes time to generate release notes. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants