Skip to content

[SPARK-30664][Web UI] Add optional metrics to all-stages page#27375

Closed
EnricoMi wants to merge 2 commits intoapache:masterfrom
G-Research:branch-stage-page-with-more-metrics
Closed

[SPARK-30664][Web UI] Add optional metrics to all-stages page#27375
EnricoMi wants to merge 2 commits intoapache:masterfrom
G-Research:branch-stage-page-with-more-metrics

Conversation

@EnricoMi
Copy link
Contributor

@EnricoMi EnricoMi commented Jan 28, 2020

What changes were proposed in this pull request?

Adding more metrics to the all-stages page, some of those available at the individual stages pages, namely Peak Execution Memory, Spill (Memory), Spill (Disk) and GC Time.

Why are the changes needed?

Finding stages that perform poorly is difficult when you have hundreds or thousands of stages. Sorting all stages by those extra metrics helps to identify those stages.

Does this PR introduce any user-facing change?

Yes, in the Web UI, not in the API.
grafik
grafik

How was this patch tested?

Manual tests.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@EnricoMi EnricoMi changed the title [WIP][SPARK-30664][Web UI] Add optional metrics to all stages page [WIP][SPARK-30664][Web UI] Add optional metrics to all-stages page Jan 28, 2020
@EnricoMi
Copy link
Contributor Author

Inviting @mgaido91, @nblintao, @zsxwing

}
}
</td> ++
{if (metrics.contains("Input")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It could be interesting to extract all this string to constants to avoid to look for all places if the string changes.
Don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good in general but I think out-of-scope for this PR

} else {
Seq.empty
}} ++
{if (metrics.contains("Output")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we find a way to avoid all this duplicate code? Something like iterate over optionalHeaders.keys or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@EnricoMi EnricoMi changed the title [WIP][SPARK-30664][Web UI] Add optional metrics to all-stages page [SPARK-30664][Web UI] Add optional metrics to all-stages page Mar 5, 2020
@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Jun 14, 2020
@github-actions github-actions bot closed this Jun 15, 2020
@EnricoMi
Copy link
Contributor Author

Can someone please reopen this PR?

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.

4 participants