ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10407. Introduce Metric for deleteKey operation in SCM Service.

Open muskan1012 opened this issue 1 year ago • 2 comments

What changes were proposed in this pull request?

In this PR few performance metrics are introduced in SCM Service for deleteKey operation.

Please describe your PR in detail: In this PR following metrics are introduced in SCM service for deleteKey operation:

  • deleteKeyFailure
  • deleteKeySuccess
  • deleteKeyFailureLatencyNs
  • deleteKeySuccessLatencyNs

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10407

How was this patch tested?

Tested manually on the cluster.

muskan1012 avatar Mar 26 '24 06:03 muskan1012

Thanks for adding these metrics @muskan1012. Are we planning to add metrics for time taken by SCM's block deleting service? The metrics added here just track the time taken for SCM to add the blocks to it's list of pending deletes in the DB. The existing ScmBlockDeletingServiceMetrics class does not have any timing of the iterations.

errose28 avatar Mar 26 '24 18:03 errose28

@errose28 thank you for looking into it, yes we can add those metrics also if it will help us to track performance of deleteKey operation in SCM service. @kerneltime @duongkame do we need that metric as well?

muskan1012 avatar Apr 04 '24 07:04 muskan1012

@tanvipenumudy can you please review this PR?

kerneltime avatar May 30 '24 06:05 kerneltime

Tested the updated patch on a local docker-compose cluster with the monitoring add-ons using sample key deletes.

image (27) image (28)

You can split the PR if you choose to address @errose28's review as part of a separate PR @muskan1012.

tanvipenumudy avatar Jun 04 '24 07:06 tanvipenumudy

Sure @tanvipenumudy, we can bring it up in another pr. Thank You @tanvipenumudy for reviewing it.

muskan1012 avatar Jun 10 '24 19:06 muskan1012

Thank you @muskan1012 for working on the patch, thank you @errose28 for the review.

tanvipenumudy avatar Jun 18 '24 07:06 tanvipenumudy