-
Notifications
You must be signed in to change notification settings - Fork 742
Report QPS about each type of command in RegionHeartbeat and StoreHeartbeat #3695
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
Conversation
server/statistics/hot_peer_cache.go
Outdated
@@ -48,6 +48,8 @@ var minHotThresholds = [RegionStatCount]float64{ | |||
RegionWriteKeys: 32, | |||
RegionReadBytes: 8 * 1024, | |||
RegionReadKeys: 128, | |||
RegionReadQuery: 1, // temp |
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.
What does temp
here mean?
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.
it only is a temp threshold, I will obtain more meanable value by test
@@ -60,6 +61,7 @@ type hotRegionSchedulerConfig struct { | |||
// step = max current * rank step ratio | |||
ByteRateRankStepRatio float64 `json:"byte-rate-rank-step-ratio"` | |||
KeyRateRankStepRatio float64 `json:"key-rate-rank-step-ratio"` | |||
QPSRankStepRatio float64 `json:"qps-rank-step-ratio"` |
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.
Is it necessary? It seems we never change these configurations.
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.
only unify with the previous configuration
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 also have doubt if the previous configurations are necessary.
Codecov Report
@@ Coverage Diff @@
## master #3695 +/- ##
==========================================
- Coverage 75.12% 75.05% -0.08%
==========================================
Files 245 245
Lines 24529 24585 +56
==========================================
+ Hits 18428 18452 +24
- Misses 4485 4504 +19
- Partials 1616 1629 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
SonarCloud Quality Gate failed.
|
Signed-off-by: lhy1024 <admin@liudos.us>
There are still some comments that need to be resolved. |
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
@lhy1024: 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. |
This pull request has been accepted and is ready to merge. Commit hash: a2bfac6
|
…rtbeat (tikv#3695) * add qps statistic Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * add metrics Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * replace loads with []float64 in peer info Signed-off-by: lhy1024 <admin@liudos.us> * statistics: replace loads with []float64 in peer info Signed-off-by: lhy1024 <admin@liudos.us> * remove unused code Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * remove unused code Signed-off-by: lhy1024 <admin@liudos.us> * fix test Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * misc Signed-off-by: lhy1024 <admin@liudos.us> * update kvproto Signed-off-by: lhy1024 <admin@liudos.us> * fix test Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * ADD TEST Signed-off-by: lhy1024 <admin@liudos.us> * update query output Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * fix keysort Signed-off-by: lhy1024 <admin@liudos.us> * fix config Signed-off-by: lhy1024 <admin@liudos.us> * update kvproto Signed-off-by: lhy1024 <admin@liudos.us> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
…rtbeat (tikv#3695) * add qps statistic Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * add metrics Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * replace loads with []float64 in peer info Signed-off-by: lhy1024 <admin@liudos.us> * statistics: replace loads with []float64 in peer info Signed-off-by: lhy1024 <admin@liudos.us> * remove unused code Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * remove unused code Signed-off-by: lhy1024 <admin@liudos.us> * fix test Signed-off-by: lhy1024 <admin@liudos.us> * address comment Signed-off-by: lhy1024 <admin@liudos.us> * misc Signed-off-by: lhy1024 <admin@liudos.us> * update kvproto Signed-off-by: lhy1024 <admin@liudos.us> * fix test Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * ADD TEST Signed-off-by: lhy1024 <admin@liudos.us> * update query output Signed-off-by: lhy1024 <admin@liudos.us> * fix lint Signed-off-by: lhy1024 <admin@liudos.us> * fix keysort Signed-off-by: lhy1024 <admin@liudos.us> * fix config Signed-off-by: lhy1024 <admin@liudos.us> * update kvproto Signed-off-by: lhy1024 <admin@liudos.us> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: lhy1024 admin@liudos.us
What problem does this PR solve?
Report QPS about each type of command in RegionHeartbeat and StoreHeartbeat
What is changed and how it works?
Check List
Tests
Release note