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: decreate the repeat filter in scheduler. #5544

Merged
merged 13 commits into from
Oct 18, 2022

Conversation

bufferflies
Copy link
Contributor

@bufferflies bufferflies commented Sep 22, 2022

What problem does this PR solve?

Issue Number: Close #5539

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test

image

Code changes

Side effects

Related changes

Release note

None.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 22, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • CabinfeverB
  • rleungx

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-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-triage-completed labels Sep 22, 2022
@bufferflies bufferflies changed the title draft: decreate the repeat filter in scheduler. scheduler: decreate the repeat filter in scheduler. Sep 22, 2022
Signed-off-by: bufferflies <[email protected]>
Signed-off-by: bufferflies <[email protected]>
@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Base: 75.73% // Head: 75.82% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (a703fd6) compared to base (19aa1c8).
Patch coverage: 90.41% of modified lines in pull request are covered.

❗ Current head a703fd6 differs from pull request most recent head 324319a. Consider uploading reports for the commit 324319a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5544      +/-   ##
==========================================
+ Coverage   75.73%   75.82%   +0.08%     
==========================================
  Files         326      326              
  Lines       32251    32276      +25     
==========================================
+ Hits        24425    24472      +47     
+ Misses       5720     5704      -16     
+ Partials     2106     2100       -6     
Flag Coverage Δ
unittests 75.82% <90.41%> (+0.08%) ⬆️

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

Impacted Files Coverage Δ
server/schedulers/metrics.go 100.00% <ø> (ø)
server/schedule/filter/filters.go 91.05% <85.71%> (-0.22%) ⬇️
server/schedulers/utils.go 93.95% <87.50%> (-0.12%) ⬇️
server/schedulers/balance_leader.go 88.38% <100.00%> (+0.04%) ⬆️
server/schedulers/balance_region.go 88.88% <100.00%> (+1.64%) ⬆️
pkg/metricutil/metricutil.go 82.75% <0.00%> (-10.35%) ⬇️
server/election/lease.go 84.05% <0.00%> (-4.35%) ⬇️
server/statistics/kind.go 41.30% <0.00%> (-2.79%) ⬇️
server/schedule/labeler/rules.go 87.50% <0.00%> (-2.28%) ⬇️
server/statistics/store_load.go 96.22% <0.00%> (-1.80%) ⬇️
... and 29 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bufferflies
Copy link
Contributor Author

/check-issue-triage-complete

@ti-chi-bot ti-chi-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed do-not-merge/needs-triage-completed labels Oct 11, 2022
Signed-off-by: bufferflies <[email protected]>
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 11, 2022
Signed-off-by: bufferflies <[email protected]>
Signed-off-by: bufferflies <[email protected]>
Signed-off-by: bufferflies <[email protected]>
Signed-off-by: bufferflies <[email protected]>
Copy link
Member

@CabinfeverB CabinfeverB left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@CabinfeverB
Copy link
Member

I think the top score store will not have diagnostic info, I will test it.

p.sourceScore = p.source.RegionScore(opts.GetRegionScoreFormulaVersion(), opts.GetHighSpaceRatio(), opts.GetLowSpaceRatio(), sourceDelta)
p.targetScore = p.target.RegionScore(opts.GetRegionScoreFormulaVersion(), opts.GetHighSpaceRatio(), opts.GetLowSpaceRatio(), targetDelta)
}
if opts.IsDebugMetricsEnabled() {
Copy link
Member

Choose a reason for hiding this comment

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

Is it deprecated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I will add it again

@bufferflies bufferflies force-pushed the filter/once branch 2 times, most recently from 1634c71 to aec7752 Compare October 14, 2022 09:43
Signed-off-by: bufferflies <[email protected]>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 14, 2022
@bufferflies
Copy link
Contributor Author

/ping, @CabinfeverB

@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 Oct 17, 2022
@bufferflies
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@bufferflies: 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: a703fd6

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 18, 2022
@ti-chi-bot
Copy link
Member

@bufferflies: 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.

@ti-chi-bot ti-chi-bot merged commit 44e07e2 into tikv:master Oct 18, 2022
@bufferflies bufferflies deleted the filter/once branch October 18, 2022 06:14
ti-chi-bot added a commit that referenced this pull request Nov 4, 2022
)

ref #5257, ref #5544

modify baseSchedulePlan to fit new balance region impl

Signed-off-by: Cabinfever_B <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. 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.

some filter should run once
4 participants