Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12149] [Web UI] Executor UI improvement suggestions - Color UI - #10154
[SPARK-12149] [Web UI] Executor UI improvement suggestions - Color UI#10154ajbozarth wants to merge 22 commits into
Conversation
ajbozarth
commented
Dec 5, 2015
Few discussion issues to raise:
|
There was a problem hiding this comment.
You can also assign these like
val (failedTasksAlpha, completedTasksAlpha) = if (...) {
(..., ...)
} else {
(1.0, 1.0)
}
but whether that's clearer is a matter of taste.
It might be better to cap alpha at 1.0 just for tidiness.
There was a problem hiding this comment.
I wanted to do that but the style guide wasn't clear on whether it was allow, I'll update it since it's cleaner. And I'll add the 1.0 cap, I left it off originally because the code was getting busy and hard to read originally.
SparkQA
commented
Dec 5, 2015
Test build #2173 has finished for PR 10154 at commit
|
JoshRosen
commented
Dec 6, 2015
Can you post screenshots? |
There was a problem hiding this comment.
The expected number of cores is 0?
There was a problem hiding this comment.
I updated that file according to the javadocs for HistoryServerSuite, the test that uses it. I would assume it's 0 since it's the driver and the driver has no cores assigned to run tasks.
ajbozarth
commented
Dec 7, 2015
srowen
commented
Dec 7, 2015
Thanks for the screenshots. The color really 'pops', so my concern is just making sure it doesn't get overwhelming. I can see using the red to very clearly call attention to failed things, or excessive GC. It also sort of feels write to call attention to active things while they're active. (If green = good and red = bad and blue = neutral, is blue more appropriate for an active task? it could turn out to fail or complete. shrug.) I wasn't as sure about coloring the completed tasks column therefore, but it's a matter of taste. I kind of like how this looks, but if anyone else is concerned about the amount of color, I suppose it's coherent to make the text colored instead of the background. |
ajbozarth
commented
Dec 7, 2015
I ran the MiMa tests locally (I didn't know they didn't run before) and they're failing because I changed api.scala and added two vals to ExecutorSummary. How do I go about fixing the MiMa failure? |
srowen
commented
Dec 7, 2015
It must be a false positive or else some problem with how mima got invoked. I don't see any API changes here. If they're "real" false positives you'll need to add an exclusion but it tells you what to add. Let's see what Jenkins says. |
SparkQA
commented
Dec 7, 2015
Test build #2178 has finished for PR 10154 at commit
|
ajbozarth
commented
Dec 9, 2015
added the MiMa exclude, please advise if I did it correctly |
There was a problem hiding this comment.
So the comment for this case class says it isn't used anymore - do we really need to update it?
There was a problem hiding this comment.
Did some checks, MiMa exclude is still needed even without this change and this change did not affect any code, therefore I've removed the change.
ajbozarth
commented
Dec 16, 2015
Is there a way someone could get the tests to run to check my change? I assumed they would run on my commit, but they didn't. |
srowen
commented
Dec 17, 2015
Jenkins test this please |
srowen
commented
Dec 17, 2015
Jenkins add to whitelist |
SparkQA
commented
Dec 17, 2015
Test build #47913 has finished for PR 10154 at commit
|
ajbozarth
commented
Dec 17, 2015
Thanks @srowen , Is there anyone we should pull into this to get more opinions on the change? |
srowen
commented
Dec 21, 2015
My only reservations are: active vs complete being colored green vs blue instead of the other way around, and also coloring the complete column at all, since it would always be colored after starting. |
ajbozarth
commented
Dec 21, 2015
I'll switch the green and blue and post some screen shots to see the difference. As for the completed column always being blue: |
ajbozarth
commented
Dec 21, 2015
ajbozarth
commented
Dec 21, 2015
ajbozarth
commented
Jan 19, 2016
Thanks, I only tested using a standalone cluster, I have Hadoop and Yarn set up on my remote testing cluster so I can test that now. |
tgravescs
commented
Jan 19, 2016
So after seeing this run I'm not sure how useful the Completed Task column shading it. Especially when there aren't any tasks running. I think it draws your attention to that column for no reason. So I think I would like to see the shading on completed tasks removed unless someone has a strong use case for it, thoughts? I still need to try out the failed and GC time. |
ajbozarth
commented
Jan 19, 2016
I had an implementation a handful of commits ago that only shaded completed when either active or failed was also colored for that row, allowing for quick comparison. What do you think of that option (there are screen shots of it above)? Also if we got rid of coloring completed tasks do we want to switch active back to green or leave it as blue? |
ajbozarth
commented
Jan 19, 2016
Tested it with Yarn and it behaves the same way as Standalone |
tgravescs
commented
Jan 19, 2016
thanks, I saw the above changes for only showing completed when active or failed but again I'm not sure how useful it is. I think just dropping the color for now makes sense. I think leave the color blue in active. If we were to keep completed tasks I think it makes more sense to shade vs other executors. The times I can think of wanting to know completed tasks is different is perhaps when that executor is being slow or skewed data. So if it doesn't have as many completed tasks as other executors. I don't think completed vs total on same executor is really that useful. But I think for now we just remove it. |
ajbozarth
commented
Jan 19, 2016
SparkQA
commented
Jan 20, 2016
Test build #49727 has finished for PR 10154 at commit
|
ajbozarth
commented
Jan 20, 2016
retest please |
tgravescs
commented
Jan 20, 2016
Jenkins, test this please |
SparkQA
commented
Jan 20, 2016
Test build #49788 has finished for PR 10154 at commit
|
tgravescs
commented
Jan 22, 2016
I haven't forgot about this, just busy, I want to take one last pass over this. |
tgravescs
commented
Jan 25, 2016
A few minor nits, otherwise looks good. |
ajbozarth
commented
Jan 25, 2016
Fixed the little issues, don't know when the space after min got there though. And this also showed me my auto-format in IntelliJ isn't 100% correct. |
SparkQA
commented
Jan 25, 2016
Test build #49996 has finished for PR 10154 at commit
|
ajbozarth
commented
Jan 25, 2016
retest this please |
tgravescs
commented
Jan 25, 2016
Jenkins, test this please |
SparkQA
commented
Jan 25, 2016
Test build #50000 has finished for PR 10154 at commit
|
tgravescs
commented
Jan 25, 2016
+1 committed this, thanks @ajbozarth |
rxin
commented
Oct 18, 2016
So I looked at the UI today and I have to say the color code is extremely confusing. On a normal cluster I saw a bunch of reds, which is usually reserved for errors. (I'm going to leave a comment on the JIRA ticket too) |
ajbozarth
commented
Oct 18, 2016
@rxin The reds only show up on failed tasks or a high gc time, what would you expect from each color? Also this was a while ago (and one of my first prs) so I'm willing to revisit how this was done. If we want to open a new JIRA to revisit it I'll work on it. (responding here since this is where all the reviewers are looped in) |
srowen
commented
Oct 19, 2016
Yes, I have not noticed the color to be confusing. What type of state are you looking at @rxin? it could be that with enough activity, failures are inevitable, and marking anything > 0 failures as red is a lot. |











Added color coding to the Executors page for Active Tasks, Failed Tasks, Completed Tasks and Task Time.
Active Tasks is shaded blue with it's range based on percentage of total cores used.
Failed Tasks is shaded red ranging over the first 10% of total tasks failed
Completed Tasks is shaded green ranging over 10% of total tasks including failed and active tasks, but only when there are active or failed tasks on that executor.
Task Time is shaded red when GC Time goes over 10% of total time with it's range directly corresponding to the percent of total time.