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

mcs: support history hot region in scheduling server #7183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Oct 9, 2023

What problem does this PR solve?

Issue Number: Ref #5839

What is changed and how does it work?

Check List

Tests

  • Unit test

Release note

None.

Signed-off-by: lhy1024 <[email protected]>
@lhy1024 lhy1024 requested review from JmPotato and rleungx October 9, 2023 12:28
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 9, 2023

[REVIEW NOTIFICATION]

This pull request has not been approved.

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 bot added release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 9, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #7183 (e57d250) into master (2556b5b) will increase coverage by 0.00%.
Report is 1 commits behind head on master.
The diff coverage is 66.66%.

❗ Current head e57d250 differs from pull request most recent head 845e271. Consider uploading reports for the commit 845e271 to get more accurate results

@@           Coverage Diff           @@
##           master    #7183   +/-   ##
=======================================
  Coverage   74.56%   74.57%           
=======================================
  Files         441      442    +1     
  Lines       47388    47448   +60     
=======================================
+ Hits        35335    35382   +47     
- Misses       8957     8958    +1     
- Partials     3096     3108   +12     
Flag Coverage Δ
unittests 74.57% <66.66%> (+<0.01%) ⬆️

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

}

h := handler.NewHandler(&svr{s})
s.hotRegionStorage, err = storage.NewHotRegionsStorage(
Copy link
Member

Choose a reason for hiding this comment

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

Will it make the scheduling server stateful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will create a leveldb in scheduling server.
If hope to store it in api server, it means that we need to pull all hot region info from scheduling server per 10 minutes
https://docs.pingcap.com/zh/tidb/stable/information-schema-tidb-hot-regions-history

Copy link
Member

Choose a reason for hiding this comment

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

Scheduling server should be stateless.

@lhy1024
Copy link
Contributor Author

lhy1024 commented Oct 10, 2023

After discussion, this pr will be suspended.

@ti-chi-bot ti-chi-bot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 17, 2023
Copy link
Contributor

ti-chi-bot bot commented Nov 17, 2023

PR needs rebase.

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 kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants