-
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 global sort related metric and fix cancel add index #47485
Conversation
Signed-off-by: wjhuang2016 <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47485 +/- ##
================================================
+ Coverage 71.9282% 72.8194% +0.8911%
================================================
Files 1396 1421 +25
Lines 404781 411938 +7157
================================================
+ Hits 291152 299971 +8819
+ Misses 94027 93126 -901
+ Partials 19602 18841 -761
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
Signed-off-by: wjhuang2016 <[email protected]>
} | ||
if iter.Error() != nil { | ||
return nil, errors.Trace(iter.Error()) | ||
} | ||
|
||
metrics.GlobalSortReadFromCloudStorageRate.WithLabelValues("read_and_sort").Observe(float64(totalSize) / 1024.0 / 1024.0 / time.Since(startTs).Seconds()) |
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.
for hot path we should cache the result of WithLabelValues
to avoid the inner lookup.
@@ -229,6 +229,8 @@ func (i *mergeIter[T, R]) next() bool { | |||
// currently only one reader will become hotspot | |||
if cnt > (checkHotspotPeriod / 2) { | |||
i.lastHotspotIdx = idx | |||
|
|||
logutil.BgLogger().Info("new hotspot reader", zap.Any("idx", i.lastHotspotIdx), zap.Any("cnt", cnt)) |
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 remember the comment of Any
says it's a bit slower, we can use zap.Int64 instead
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's for debug, I forgot to remove it
Signed-off-by: wjhuang2016 <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, ywqzzy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
/cherry-pick release-7.5 |
@D3Hunter: new pull request created to branch In response to this:
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. |
What problem does this PR solve?
Issue Number: ref #45719 and close #47715 #47534
Problem Summary:
Add global sort related metric.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.