Skip to content

[CELEBORN-XXXX] Expose manually excluded worker count metric - #3772

Closed
tashi-rokt wants to merge 1 commit into
apache:mainfrom
tashi-rokt:tashi-rokt/celeborn-manual-exclusion-metric
Closed

[CELEBORN-XXXX] Expose manually excluded worker count metric#3772
tashi-rokt wants to merge 1 commit into
apache:mainfrom
tashi-rokt:tashi-rokt/celeborn-manual-exclusion-metric

Conversation

@tashi-rokt

Copy link
Copy Markdown

What changes were proposed in this pull request?

Add a ManualExcludedWorkerCount master gauge that reports only workers excluded through the manual exclusion mechanism.

The existing ExcludedWorkerCount remains unchanged and continues to report the combined automatic and manual exclusion count. The new gauge is also documented in the master metrics reference.

Why are the changes needed?

ExcludedWorkerCount combines automatic and manual exclusions, so operators cannot determine from metrics whether persistent manual exclusion state is preventing otherwise healthy workers from becoming available.

The REST API exposes the two states separately, but diagnosing this condition currently requires querying the active master. Exporting the manual count separately makes the distinction observable through the existing metrics system without changing exclusion behavior.

Does this PR resolve a correctness bug?

  • Yes

Does this PR introduce any user-facing change?

  • Yes

How was this patch tested?

  • Added a MasterSuite test that verifies the emitted gauge follows manual exclusion state from 0 to 1 and back to 0.
  • Ran:
    • ./build/mvn -pl master -am -Dtest=none -DwildcardSuites=org.apache.celeborn.service.deploy.master.MasterSuite test
    • ./build/mvn spotless:check -Pgoogle-mirror,spark-3.3

Both commands passed locally.

Draft note

The CELEBORN Jira is still to be created. Replace CELEBORN-XXXX in the title and link the Jira before marking this PR ready for review.

@Kalvin2077

Copy link
Copy Markdown
Contributor

@tashi-rokt
Feel free to create a Celeborn JIRA issue here: https://issues.apache.org/jira/projects/CELEBORN/issues

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions Bot added the stale label Aug 26, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

This issue was closed because it has been staled for 10 days with no activity.

@github-actions github-actions Bot closed this Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants