Github user ajbozarth commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10154#discussion_r49776549
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/exec/ExecutorsPage.scala 
---
    @@ -114,9 +114,38 @@ private[ui] class ExecutorsPage(
     
       /** Render an HTML row representing an executor */
       private def execRow(info: ExecutorSummary, logsExist: Boolean): 
Seq[Node] = {
    +    // When GCTimePercent is edited change ToolTips.TASK_TIME to match
    +    val GCTimePercent = 0.1
    +
         val maximumMemory = info.maxMemory
         val memoryUsed = info.memoryUsed
         val diskUsed = info.diskUsed
    +
    +    // Determine Color Opacity from 0.5-1
    +    // activeTasks range from 0 to all cores
    +    val activeTasksAlpha =
    +      if (info.totalCores > 0) {
    +        (info.activeTasks.toDouble / info.totalCores) * 0.5 + 0.5
    --- End diff --
    
    I didn't know about that, currently testing a change that replaces 
totalCores with maxTasks (= totalCores / spark.task.cpus) in my implementation. 
We also have the option of not shading the color on active tasks at all.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to