Uh oh!
There was an error while loading. Please reload this page.
HDDS-9874. Introduce Metrics for listKeys Dashboard - #5745
Conversation
adoroszlai
commented
Dec 7, 2023
@muskan1012 There are checkstyle and findbugs failures. It would be nice to wait with PR creation until a clean CI run in your fork is completed. |
| private MutableRate listKeysAveragePagination; | ||
| @Metric(about = "ops per second for listKeys") | ||
| private MutableRate listKeysOpsPerSec; |
There was a problem hiding this comment.
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 get listKeysOpsPerSec and listKeysAveragePagination.
There was a problem hiding this comment.
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.
kerneltime
commented
Dec 11, 2023
cc @tanvipenumudy can you please take a look as well? |
tanvipenumudy
left a comment
There was a problem hiding this comment.
Thank you @muskan1012 for the patch, please find a few comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kerneltime
commented
Jan 2, 2024
@muskan1012 can you please rebase the change and address the conflicts? |
tanvipenumudy
commented
Jan 8, 2024
Thank you @muskan1012 for updating the patch, could you please take a look at the build failure? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tanvipenumudy
commented
Jun 18, 2024
@muskan1012, the failed checks appear related to the changes ( Could you also please rebase the patch? Thanks! |
tanvipenumudy
commented
Jun 21, 2024
Thank you @muskan1012 for rebasing and fixing the test failures. Reran the workflow; could you please take a look at the integration test failure on |
@adoroszlai, @xichen01 could you please take another look at the patch? Thanks |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tanvipenumudy
commented
Jun 24, 2024
@muskan1012, it would help if you could also please share the updated list keys dashboard (or prometheus/graphana metrics - whichever works!) once all changes are incorporated, thanks. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @muskan1012 for updating the patch.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @muskan1012 for updating the patch. Mostly looks good, some unnecessary changes are still left over.
Also, can you please consider @kerneltime's suggestion to rename averagePagination to keyCount?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
muskan1012
commented
Jul 1, 2024
Hi @adoroszlai, thank you for reviewing it. Fixed minor nits as well. |
tanvipenumudy
left a comment
There was a problem hiding this comment.
Thank you @muskan1012 for working on the patch iteratively, thank you @adoroszlai, @kerneltime, @xichen01 for the reviews.
What changes were proposed in this pull request?
Introduced following metrics for listKey operations:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9874
How was this patch tested?
manually tested it on a cluster