-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-5771] Number of Cores in Completed Applications of Standalone Master Web Page always be 0 if sc.stop() is called #4567
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
…Master Web Page always be 0 if sc.stop() is called
|
Can one of the admins verify this patch? |
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.
Might be able to use math.max here. Also should the column heading say "Cores (max)" in the case of completed apps only? Otherwise LGTM.
|
From my understanding, this is an expected behavior since app is finished, number of cores occupied return to ZERO. So you want to display the cores used even when the app is finished, is that right? |
|
I also agree with that interpretation, in which case this column is unuseful for completed apps, and could be removed (or blanked, to retain alignment). If it shows anything it should be max or average or something. |
|
The problem here is that the Cores displayed here is confused, because it depends on whether sc.stop() is called or not. So I choose to display core max here. |
|
I think it really depends on how you interpret this :). |
|
@jerryshao I agree with @marsishandsome on this one. The issue is not what you should display for # of cores when an app stops -- the issue that it should display something consistent whether or not the app calls I don't have any strong feelings whether it should be 0 or max or avg, but I do think it should be consistent whether or not |
|
Looks good for now. However, in the future if we want to extend dynamic allocation to standalone mode we will have executors coming and going all the time, in which case |
|
@andrewor14 What about showing the core number users requested (total-executor-cores) for now? |
|
Thanks @squito , seems this is really a issue, the problem is that cores might be varied accordingly as executor failed or added (dynamic allocation), |
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.
Nit: Cores Using -> Cores In Use
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.
more nit: Cores in Use? (lower case i)
|
FWIW I like the current solution in the screenshot. |
|
See https://issues.apache.org/jira/browse/SPARK-5076 too; it suggests that in addition to removing the current cores column for completed apps, to remove the Memory per Node column too. WDYT? |
|
Hey @marsishandsome the new solution looks good. Once you address @srowen's in-line comments I will merge this. As for SPARK-5076, I think having information about the cores and executor memory actually helps the user identify his/her application. I am inclined to close that one as a won't fix and favor this PR. |
|
retest this please |
|
Test build #27926 has started for PR 4567 at commit
|
|
Test build #27926 has finished for PR 4567 at commit
|
|
Test PASSed. |
|
Looks like everything has been addressed and also LGTM. I'll wait a beat for any more feedback but think this can be merged. (@andrewor14 I'll link your suggestion on SPARK-5076 to see what Josh thinks.) |
|
Looks like if I think this Cores Requested may be a little confused, I think it would be better to set as MAX, what's your opinion, @andrewor14. Thanks. |
|
@jerryshao Darn, yeah that needs to be fixed. |
|
I think |
|
I think |
|
Thanks @jerryshao |
…es is not set cc andrewor14, srowen. Author: jerryshao <[email protected]> Closes #4800 from jerryshao/SPARK-5771 and squashes the following commits: a2483c2 [jerryshao] Change the UI of Requested Cores into * if default cores is not set
|
Per discussion on #4841 I'm reverting this. |
In Standalone mode, the number of cores in Completed Applications of the Master Web Page will always be zero, if sc.stop() is called.
But the number will always be right, if sc.stop() is not called.
The reason maybe:
after sc.stop() is called, the function removeExecutor of class ApplicationInfo will be called, thus reduce the variable coresGranted to zero. The variable coresGranted is used to display the number of Cores on the Web Page.