-
Notifications
You must be signed in to change notification settings - Fork 726
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
Calculate the state of the cluster using the CPU usages reported by TiKV #1875
Conversation
cbb4395
to
f4f6dea
Compare
/run-all-tests |
f2d434f
to
e271ac8
Compare
/run-all-tests |
Does this PR conflict with #1903? |
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.
I think this can become a separate package which provides store statistics information.
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
state Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
9a0493d
to
587d09f
Compare
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1875 +/- ##
==========================================
+ Coverage 77.79% 77.87% +0.07%
==========================================
Files 174 175 +1
Lines 17626 17710 +84
==========================================
+ Hits 13713 13791 +78
- Misses 2844 2853 +9
+ Partials 1069 1066 -3
Continue to review full report at Codecov.
|
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
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 except for the LoadStateIdle
state. The problem will be changed in the next PR.
/merge |
/run-all-tests |
What problem does this PR solve?
By collecting CPU usages from TiKV's heartbeat, PD has a global view of the load of the whole cluster.
What is changed and how it works?
Keep a 5 minutes history of the heartbeat and calculate the state according to the CPU usage.
Check List
Tests