AngersZhuuuu commented on a change in pull request #34695:
URL: https://github.com/apache/spark/pull/34695#discussion_r770175233
##########
File path:
core/src/main/scala/org/apache/spark/status/api/v1/OneApplicationResource.scala
##########
@@ -52,6 +52,25 @@ private[v1] class AbstractApplicationResource extends
BaseAppResource {
@Path("executors")
def executorList(): Seq[ExecutorSummary] = withUI(_.store.executorList(true))
+ @GET
+ @Path("executorPeakMemoryMetricsDistribution")
+ def executorSummary(
+ @QueryParam("activeOnly") @DefaultValue("true") activeOnly: Boolean,
+ @DefaultValue("0.05,0.25,0.5,0.75,0.95") @QueryParam("quantiles")
quantileString: String)
+ : ExecutorPeakMetricsDistributions = withUI { ui =>
+ val quantiles = quantileString.split(",").map { s =>
+ try {
+ s.toDouble
+ } catch {
+ case nfe: NumberFormatException =>
Review comment:
Done
##########
File path: core/src/main/resources/org/apache/spark/ui/static/executorspage.js
##########
@@ -770,5 +940,140 @@ $(document).ready(function () {
}
});
});
+
+ var quantiles = "0,0.25,0.5,0.75,1.0";
+ $.getJSON(createRESTEndPointForExecutorsPeakMetricsSummariesPage(appId) +
"?activeOnly=true&quantiles=" + quantiles,
Review comment:
Done
##########
File path:
core/src/main/scala/org/apache/spark/status/api/v1/OneApplicationResource.scala
##########
@@ -52,6 +52,25 @@ private[v1] class AbstractApplicationResource extends
BaseAppResource {
@Path("executors")
def executorList(): Seq[ExecutorSummary] = withUI(_.store.executorList(true))
+ @GET
+ @Path("executorPeakMemoryMetricsDistribution")
+ def executorSummary(
+ @QueryParam("activeOnly") @DefaultValue("true") activeOnly: Boolean,
Review comment:
Done
##########
File path: core/src/main/scala/org/apache/spark/status/AppStatusStore.scala
##########
@@ -402,6 +402,18 @@ private[spark] class AppStatusStore(
Some(computedQuantiles)
}
+ /**
+ * Calculates a summary of the executor metrics for executors, returning the
+ * requested quantiles for the recorded metrics.
+ */
+ def executorMetricSummary(
+ activeOnly: Boolean,
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]