Skip to content

HDDS-14954. Add logging and metric for SCM safemode duration.#10018

Merged
sadanand48 merged 6 commits into
apache:masterfrom
sadanand48:HDDS-14954
May 18, 2026
Merged

HDDS-14954. Add logging and metric for SCM safemode duration.#10018
sadanand48 merged 6 commits into
apache:masterfrom
sadanand48:HDDS-14954

Conversation

@sadanand48

@sadanand48 sadanand48 commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add a metric for :

  1. Time SCM took to exit safemode.
  2. Total time taken by the refresh call in ContainerSafemodeRule.
    We need this because in large clusters it is observed that refresh takes a lot of time. This can be used for monitoring.

What is the link to the Apache JIRA

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

Screenshot 2026-05-15 at 2 30 48 PM

@errose28

errose28 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Thanks for adding this @sadanand48. Let's add new safemode metrics to the safemode dashboard as well.

@sreejasahithi sreejasahithi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sadanand48 for working on this.
Could you please add the Grafana dashboard screenshots to the PR description.

@sadanand48 sadanand48 marked this pull request as ready for review May 15, 2026 08:29
@sadanand48 sadanand48 requested review from aryangupta1998 and sreejasahithi and removed request for sreejasahithi May 15, 2026 09:01

@aryangupta1998 aryangupta1998 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, LGTM!

@sreejasahithi sreejasahithi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sadanand48
LGTM

@sadanand48 sadanand48 merged commit e07f8b5 into apache:master May 18, 2026
47 checks passed
@sadanand48

Copy link
Copy Markdown
Contributor Author

Thanks @sreejasahithi @errose28 @aryangupta1998 for the reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants