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

BlockManagerSource — Metrics Source for BlockManager

BlockManagerSource — Metrics Source for BlockManager

BlockManagerSource is the metrics source of a BlockManager.

BlockManagerSource is registered under the name BlockManager (when SparkContext is created).

Table 1. BlockManagerSource’s Gauge Metrics (in alphabetical order)
Name Type Description

disk.diskSpaceUsed_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their disk space used (diskUsed).

memory.maxMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their maximum memory limit (maxMem).

memory.maxOffHeapMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their off-heap memory remaining (maxOffHeapMem).

memory.maxOnHeapMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their on-heap memory remaining (maxOnHeapMem).

memory.memUsed_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their memory used (memUsed).

memory.offHeapMemUsed_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their off-heap memory used (offHeapMemUsed).

memory.onHeapMemUsed_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their on-heap memory used (onHeapMemUsed).

memory.remainingMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their memory remaining (memRemaining).

memory.remainingOffHeapMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their off-heap memory remaining (offHeapMemRemaining).

memory.remainingOnHeapMem_MB

long

Requests BlockManagerMaster for storage status (for every BlockManager) and sums up their on-heap memory remaining (onHeapMemRemaining).

You can access the BlockManagerSource metrics using the web UI’s port (as spark.ui.port configuration property).

BlockManagerSource takes a BlockManager when created.

BlockManagerSource is created when SparkContext is created.

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

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏