例如,通过执行以下命令:
http://:8088 / ws / v1 / cluster / metrics
我得到这样的输出:
{
"clusterMetrics": {
"appsSubmitted": 502521,
"appsCompleted": 501201,
"appsPending": 0,
"appsRunning": 19,
"appsFailed": 454,
"appsKilled": 847,
"reservedMB": 140400,
"availableMB": 12615232,
"allocatedMB": 8830800,
"reservedVirtualCores": 39,
"availableVirtualCores": 6140,
"allocatedVirtualCores": 2065,
"containersAllocated": 1692,
"containersReserved": 39,
"containersPending": 3960,
"totalMB": 21446032,
"totalVirtualCores": 8205,
"totalNodes": 199,
"lostNodes": 1,
"unhealthyNodes": 1,
"decommissionedNodes": 8,
"rebootedNodes": 0,
"activeNodes": 189
}
}
例如,allocatedMB意味着什么?
它是瞬时值吗?
是否在一个间隔期内取平均值?间隔是可配置的吗?
最佳答案
已分配的MB是已分配给vcore的内存(尽管不一定要使用)。是的,它是一个瞬时值。没有间隔,它是那一刻群集的快照(减去从资源管理器中的数据结构计算这些值,然后通过REST API返回这些值所花费的时间)。
如果您要转换指标,那就说:
关于performance - YARN群集指标如何计算?它们是即时快照还是一段时间内的平均值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44145131/