Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/10154#discussion_r49734086
--- 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 --
So this isn't taking into account that a task could use more then one core
via the spark.task.cpus configuration.
---
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]