关注 spark技术分享,
撸spark源码 玩spark最佳实践

ShuffleMetricsSource — Metrics Source of BlockManager for Shuffle-Related Metrics

ShuffleMetricsSource is the metrics source of a BlockManager for shuffle-related metrics.

ShuffleMetricsSource lives on a Spark executor and is registered only when a Spark application runs in a non-local / cluster mode.

spark ShuffleMetricsSource.png
Figure 1. Registering ShuffleMetricsSource with “executor” MetricsSystem

ShuffleMetricsSource is created exclusively when BlockManager is requested for the shuffleMetricsSource.

When created, ShuffleMetricsSource gets a MetricSet that BlockManager requests from the ShuffleClient (only when in a non-local / cluster mode).

ShuffleMetricsSource is registered under the following source name per the type of a BlockManager:

Note
spark.shuffle.service.enabled configuration property is off (false) by default.
Table 1. ShuffleMetricsSource’s Gauge Metrics (in alphabetical order)
Name Type Description
Note
Since Executor does not have a web UI attached you cannot access the metrics using the HTTP protocol (through MetricsServlet JSON metrics sink).

Creating ShuffleMetricsSource Instance

ShuffleMetricsSource takes the following when created:

  • Source name

  • Dropwizard Metrics’ MetricSet

赞(0) 打赏
未经允许不得转载:spark技术分享 » ShuffleMetricsSource — Metrics Source of BlockManager for Shuffle-Related Metrics
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏