-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17438][WebUI] Show Application.executorLimit in the application page #15001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
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.
|
Test build #65055 has finished for PR 15001 at commit
|
ApplicationInfo.executorLimit is set|
cc @tdas |
|
Test build #65059 has finished for PR 15001 at commit
|
|
@JoshRosen do you have time to review this PR? |
|
Minor typo in the PR title and description: applicatino -> application |
JoshRosen
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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> | ||
| { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
|
Test build #65408 has finished for PR 15001 at commit
|
|
Test build #3266 has finished for PR 15001 at commit
|
|
LGTM, merging into master 2.0 thanks @zsxwing! |
…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>
…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.
What changes were proposed in this pull request?
This PR adds
Application.executorLimitto the applicatino pageHow was this patch tested?
Checked the UI manually.
Screenshots:

1. Dynamic allocation is enabled.