-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-9874. Introduce Metrics for listKeys Dashboard #5745
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
c38ead2
added ops per sec and average pagination metric for listkeys
36ca4fa
updated test cases
1818a49
Updated all test cases
f731a19
refactored code
6d3d979
refactored code
18e1e00
fixed errors
6744486
fixed import errors
a8c1c0a
Merge branch 'master' into HDDS-9874
muskan1012 3375fce
rearranged imports and refactored code
muskan1012 68b8238
Merge branch 'master' into HDDS-9874
muskan1012 e879fc9
removed duplicate code
muskan1012 94545b6
code change to avoid build failure
muskan1012 860247b
Merge branch 'master' into HDDS-9874
muskan1012 3c15956
fixed test cases
muskan1012 2a3a512
Merge branch 'HDDS-9874' of github.com:muskan1012/ozone into HDDS-9874
muskan1012 7fb39c6
Merge branch 'apache:master' into HDDS-9874
muskan1012 1bd6fd7
fixed checkstyle and other issues
muskan1012 31f8a3c
checkstyle issue resolved
muskan1012 3a73859
unit test resolution
muskan1012 6bf2a5e
unit test case failures resolutions
muskan1012 8671712
listKeysReadFromRocksDbLatency metric added
muskan1012 a0397eb
removed irrelevant code
muskan1012 dfd427b
refactored code to avoid null pointer exception
muskan1012 cf5f43d
Merge branch 'master' into HDDS-9874
muskan1012 570bc36
Merge branch 'master' into HDDS-9874
muskan1012 364de9b
updated code to avoid npe
muskan1012 d26e986
npe resolution for integration-recon
muskan1012 2bb0cda
refactored code as per review comments
muskan1012 bf9d575
minor nits fixed
muskan1012 b0a5832
changes as per the review comment
muskan1012 1c83093
Apply suggestions from code review
muskan1012 8139ae7
changed naming convention as per the review comment
muskan1012 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We have the Latency metric
listKeysLatencyNs, maybe we just need to add a cumulative number of listKeys metric(such as: listKeysSize), which we can calculate to getlistKeysOpsPerSecandlistKeysAveragePagination.ozone/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMPerformanceMetrics.java
Lines 92 to 93 in 0e91b2a
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 implemented the cumulative number of listKeys using keyCount, which is set to maxKeys if truncated or cacheKeyMap.size() otherwise.
listKeysAveragePagination is set using keyCount.
listKeysOpsPerSec is calculated as keyCount / ((Time.monotonicNowNanos() - startNanos) / 1_000_000_000.0f).
Added latency tracking with addListKeysReadFromRocksDbLatencyNs.
This approach captures the metrics as you suggested.