-
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
*: add region read/write bytes info and approximate size/keys in show table regions result. #11847
Conversation
… table regions result.
Codecov Report
@@ Coverage Diff @@
## master #11847 +/- ##
================================================
- Coverage 81.3809% 81.2182% -0.1628%
================================================
Files 438 438
Lines 95225 94384 -841
================================================
- Hits 77495 76657 -838
- Misses 12246 12249 +3
+ Partials 5484 5478 -6 |
HotWrite = "/pd/api/v1/hotspot/regions/write" | ||
Regions = "/pd/api/v1/regions" | ||
Stores = "/pd/api/v1/stores" | ||
HotRead = "/pd/api/v1/hotspot/regions/read" |
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.
Need update the doc?
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.
yep. I will do it.
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.
LGTM
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.
LGTM
/run-all-tests |
Could you change APPROXIMATE_SIZE to |
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.
Need change
/run-all-tests |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 failed |
… table regions result. (pingcap#11847)
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @crazycs520 PTAL. |
What problem does this PR solve?
before
In This PR
Add 4 new field
WRITTEN_BYTES
: the write bytes in the heartbeat cycle. unit is bytes.READ_BYTES
: the read bytes in the heartbeat cycle. unit is bytes.APPROXIMATE_SIZE(MB)
: approximate region size. unit is MB.APPROXIMATE_KEYS
: approximate region keys.What is changed and how it works?
Use PD HTTP API
/pd/api/v1//region/id/{id}
to get region info one by one.problem
The region info got from PD may not be accurate.
Check List
Tests
Code changes
Side effects
Related changes
Release Note