-
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
tools: refine pd-heartbeat-bench #3688
Conversation
[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. |
Codecov Report
@@ Coverage Diff @@
## master #3688 +/- ##
=======================================
Coverage 75.63% 75.64%
=======================================
Files 312 312
Lines 31054 31054
=======================================
+ Hits 23489 23492 +3
+ Misses 5561 5554 -7
- Partials 2004 2008 +4
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: HunDunDM <[email protected]>
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.
Rest LGTM.
tools/pd-heartbeat-bench/main.go
Outdated
} | ||
// All stores finished heartbeat once. | ||
for storeID := 1; storeID <= *storeCount; storeID++ { | ||
<-groupEndNotify[storeID] | ||
} | ||
|
||
close(report.Results()) | ||
endTime := time.Now() |
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.
Better use time.Since
which is more clear.
Signed-off-by: HunDunDM <[email protected]>
Signed-off-by: HunDunDM <[email protected]>
Signed-off-by: HunDunDM <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
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
// update flow | ||
for _, i := range rs.updateFlow { | ||
region := rs.regions[i] | ||
region.BytesWritten += bytesUnit |
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.
maybe we need a param to control the flow change range.
/merge |
@nolouch: 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: 6f74a6b
|
Can we merge it? |
/merge |
@nolouch: 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. |
/rebuild |
Signed-off-by: HunDunDM [email protected]
What problem does this PR solve?
Issue Number: Close #4399
What is changed and how it works?
pd-heartbeat-bench
to bench more complicated situationsCheck List
Tests
Release note