Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Jan 20, 2021

What changes were proposed in this pull request?

This PR backports SPARK-34005 (#31029).
This PR makes AppStatusListener update the peak memory metrics for each Executor on task end like other peak memory metrics (e.g, stage, executors in a stage).

Why are the changes needed?

When AppStatusListener#onExecutorMetricsUpdate is called, peak memory metrics for Executors, stages and executors in a stage are updated but currently, the metrics only for Executors are not updated on task end.

Does this PR introduce any user-facing change?

Yes. Executor peak memory metrics is updated more accurately.

How was this patch tested?

After I run a job with local-cluster[1,1,1024] and visited /api/v1/<appid>/executors, I confirmed peakExecutorMemory metrics is shown for an Executor even though the life time of each job is very short .
I also modify the json files for HistoryServerSuite.

…ask end

### What changes were proposed in this pull request?

This PR makes `AppStatusListener` update the peak memory metrics for each Executor on task end like other peak memory metrics (e.g, stage, executors in a stage).

### Why are the changes needed?

When `AppStatusListener#onExecutorMetricsUpdate` is called, peak memory metrics for Executors, stages and executors in a stage are updated but currently, the metrics only for Executors are not updated on task end.

### Does this PR introduce _any_ user-facing change?

Yes. Executor peak memory metrics is updated more accurately.

### How was this patch tested?

After I run a job with `local-cluster[1,1,1024]` and visited `/api/v1/<appid>/executors`, I confirmed `peakExecutorMemory` metrics is shown for an Executor even though the life time of each job is very short .
I also modify the json files for `HistoryServerSuite`.

Closes apache#31029 from sarutak/update-executor-metrics-on-taskend.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@sarutak
Copy link
Member Author

sarutak commented Jan 20, 2021

Copy link
Member

@gengliangwang gengliangwang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@github-actions github-actions bot added the CORE label Jan 20, 2021
@SparkQA
Copy link

SparkQA commented Jan 20, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38849/

@SparkQA
Copy link

SparkQA commented Jan 20, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38849/

@gengliangwang
Copy link
Member

Thanks, merging to branch-3.1

gengliangwang pushed a commit that referenced this pull request Jan 20, 2021
… on task end

### What changes were proposed in this pull request?

This PR backports SPARK-34005 (#31029).
This PR makes `AppStatusListener` update the peak memory metrics for each Executor on task end like other peak memory metrics (e.g, stage, executors in a stage).

### Why are the changes needed?

When `AppStatusListener#onExecutorMetricsUpdate` is called, peak memory metrics for Executors, stages and executors in a stage are updated but currently, the metrics only for Executors are not updated on task end.

### Does this PR introduce _any_ user-facing change?

Yes. Executor peak memory metrics is updated more accurately.

### How was this patch tested?

After I run a job with `local-cluster[1,1,1024]` and visited `/api/v1/<appid>/executors`, I confirmed `peakExecutorMemory` metrics is shown for an Executor even though the life time of each job is very short .
I also modify the json files for `HistoryServerSuite`.

Closes #31261 from sarutak/SPARK-34005-branch-3.1.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
@sarutak sarutak closed this Jan 20, 2021
@SparkQA
Copy link

SparkQA commented Jan 20, 2021

Test build #134263 has finished for PR 31261 at commit 4d721f2.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak sarutak deleted the SPARK-34005-branch-3.1 branch June 4, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants