Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Sep 7, 2016

What changes were proposed in this pull request?

This PR adds Application.executorLimit to the applicatino page

How was this patch tested?

Checked the UI manually.

Screenshots:

  1. Dynamic allocation is disabled

screen shot 2016-09-07 at 4 21 49 pm

1. Dynamic allocation is enabled.

screen shot 2016-09-07 at 4 25 30 pm

Copy link
Member Author

Choose a reason for hiding this comment

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

note: maxCores.get - app.coresGranted may be negative before we kill the executors.

@SparkQA
Copy link

SparkQA commented Sep 7, 2016

Test build #65055 has finished for PR 15001 at commit c2c84f1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing zsxwing changed the title [SPARK-17438][WebUI]Master UI should show the correct core limit when ApplicationInfo.executorLimit is set [SPARK-17438][WebUI] Show Application.executorLimit in the applicatino page Sep 7, 2016
@zsxwing
Copy link
Member Author

zsxwing commented Sep 7, 2016

cc @tdas

@SparkQA
Copy link

SparkQA commented Sep 8, 2016

Test build #65059 has finished for PR 15001 at commit 6526a02.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented Sep 14, 2016

@JoshRosen do you have time to review this PR?

@JoshRosen
Copy link
Contributor

Minor typo in the PR title and description: applicatino -> application

Copy link
Contributor

@JoshRosen JoshRosen left a comment

Choose a reason for hiding this comment

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

This change looks good to me overall but I have one suggestion regarding wording and a question regarding the maxCores limit shown on the Master UI.

"Shaded red when garbage collection (GC) time is over 10% of task time"

val APPLICATION_EXECUTOR_LIMIT =
"""The number of executors this application can have at any given time. This is set only when
Copy link
Contributor

Choose a reason for hiding this comment

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

How about something like

Maximum number of executors that this application will use. This limit is finite only when dynamic allocation is enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

<span data-toggle="tooltip" title={ToolTips.APPLICATION_EXECUTOR_LIMIT}
data-placement="right">
<strong>Executor Limit: </strong>
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that ApplicationDescription has a maxCores field which is displayed on the Master UI's applications page. Do you think that there's any possibility for confusion between the limits displayed there (which are measured in terms of cores) and the executor limits shown here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. Actually, there is another confusing difference between executor limit and maxCores: maxCores is fixed for an application while executorLimit is mutable. I'm not sure how to clarify them just on UI.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think for now it's OK. Conceptually the number of executors is constrained by the lower of the two: the executor limit and the cores limit (when translated into executors).

@zsxwing zsxwing changed the title [SPARK-17438][WebUI] Show Application.executorLimit in the applicatino page [SPARK-17438][WebUI] Show Application.executorLimit in the application page Sep 14, 2016
@SparkQA
Copy link

SparkQA commented Sep 15, 2016

Test build #65408 has finished for PR 15001 at commit b41aa04.

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

@SparkQA
Copy link

SparkQA commented Sep 15, 2016

Test build #3266 has finished for PR 15001 at commit b41aa04.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

LGTM, merging into master 2.0 thanks @zsxwing!

asfgit pushed a commit that referenced this pull request Sep 19, 2016
…n page

## What changes were proposed in this pull request?

This PR adds `Application.executorLimit` to the applicatino page

## How was this patch tested?

Checked the UI manually.

Screenshots:

1. Dynamic allocation is disabled

<img width="484" alt="screen shot 2016-09-07 at 4 21 49 pm" src="https://cloud.githubusercontent.com/assets/1000778/18332029/210056ea-7518-11e6-9f52-76d96046c1c0.png">

2. Dynamic allocation is enabled.

<img width="466" alt="screen shot 2016-09-07 at 4 25 30 pm" src="https://cloud.githubusercontent.com/assets/1000778/18332034/2c07700a-7518-11e6-8fce-aebe25014902.png">

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #15001 from zsxwing/fix-core-info.

(cherry picked from commit 80d6655)
Signed-off-by: Andrew Or <andrew@databricks.com>
@asfgit asfgit closed this in 80d6655 Sep 19, 2016
wgtmac pushed a commit to wgtmac/spark that referenced this pull request Sep 19, 2016
…n page

## What changes were proposed in this pull request?

This PR adds `Application.executorLimit` to the applicatino page

## How was this patch tested?

Checked the UI manually.

Screenshots:

1. Dynamic allocation is disabled

<img width="484" alt="screen shot 2016-09-07 at 4 21 49 pm" src="https://cloud.githubusercontent.com/assets/1000778/18332029/210056ea-7518-11e6-9f52-76d96046c1c0.png">

2. Dynamic allocation is enabled.

<img width="466" alt="screen shot 2016-09-07 at 4 25 30 pm" src="https://cloud.githubusercontent.com/assets/1000778/18332034/2c07700a-7518-11e6-8fce-aebe25014902.png">

Author: Shixiong Zhu <shixiong@databricks.com>

Closes apache#15001 from zsxwing/fix-core-info.
@zsxwing zsxwing deleted the fix-core-info branch September 19, 2016 20:38
zzcclp added a commit to zzcclp/spark that referenced this pull request Sep 20, 2016
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