YARN UI metrics
YARN UI queue metrics measure configured targets, effective runtime guarantees, and absolute cluster capacity percentages so you can track resource consumption and identify unavailable cluster capacity.
- Configured values – Static targets defined directly within the scheduler configuration.
- Effective values – Dynamic metrics calculated based on the actual real-time availability of cluster nodes.
- Absolute values – Metrics represented as a percentage of total cluster capacity, rather than relative to a parent queue.
Discrepancies between configured and effective values occur when nodes are decommissioned, unhealthy, or temporarily unavailable. Monitoring this variance between configured and effective values allows you to identify capacity that is requested but not currently available.
Capacity metrics
Used Capacity
The percentage of this queue's effective capacity that is currently consumed by running applications. A value above 100% indicates that the queue is borrowing resources from other queues through preemption or resource sharing. Formula: Used Capacity % = Used Resources / Effective Capacity.
Configured Capacity
The minimum resource guarantee for this queue as defined in the scheduler configuration. Expressed as an absolute resource value (memory in MB and virtual cores). This value is static and does not change unless the scheduler configuration is updated. In weight-based or absolute-resource allocation mode this is the target derived from the configured weight or absolute resource setting.
Configured Max Capacity
The upper resource ceiling for this queue as defined in the scheduler configuration. Running applications cannot collectively consume more resources than this limit, even when idle capacity is available elsewhere in the cluster. Expressed as an absolute resource value (memory in MB and virtual cores).
Effective Capacity
The actual minimum resource guarantee available to this queue at runtime, taking into account the real-time availability of cluster nodes. Effective capacity is calculated as the total currently available cluster capacity multiplied by the queue's configured minimum capacity percentage through each level of the queue hierarchy. Because it depends on live node availability, effective capacity is dynamic: it decreases when nodes are decommissioned or become unhealthy, and recovers when those nodes return.
Calculation by allocation mode:
- Percentage mode: Effective Capacity = Available Cluster Capacity × (product of configured minimum capacity percentages from root to this queue)
- Weight or absolute-resource mode: Effective Capacity = Available Cluster Capacity × (derived minimum capacity percentage calculated from absolute resource values or weights from root to this queue)
Effective Max Capacity
The actual upper resource ceiling available to this queue at runtime. Computed the same way as effective capacity, but using the configured maximum capacity percentages through the queue hierarchy instead of the minimum capacity percentages. Like effective capacity, this value is dynamic and reflects real-time node availability.
Absolute capacity metrics
Absolute metrics express resource values as a percentage of total cluster capacity, making it possible to compare queues at different levels of the hierarchy on the same scale.
Absolute Used Capacity
The percentage of total cluster capacity currently consumed by applications in this queue. Formula: Absolute Used Capacity % = Used Resources / Total Cluster Capacity.
Absolute Configured Capacity
The queue's minimum resource guarantee expressed as a percentage of total cluster capacity. Equivalent to the product of the configured minimum capacity percentages from the root queue down to this queue. This value is static unless the scheduler configuration changes.
Absolute Configured Max Capacity
The queue's maximum resource ceiling expressed as a percentage of total cluster capacity. Equivalent to the product of the configured maximum capacity percentages from the root queue down to this queue. This value is static unless the scheduler configuration changes.
Interpreting effective versus configured capacity
The following example illustrates how to use queue metrics to assess cluster health.
Given these values for a queue:
- Configured Capacity: 1,424,000 MB
- Effective Capacity: 668,818 MB (31.1%)
- Absolute Configured Capacity: 31.1%
- Used Capacity: 638,976 MB (95.5%)
- Absolute Used Capacity: 29.7%
To derive the total available cluster capacity from effective capacity and absolute configured capacity:
Total Cluster Capacity ≈ Effective Capacity / Absolute Configured Capacity % = 668,818 MB / 0.311 ≈ 2,150,555 MB
In this example, the configured capacity (1,424,000 MB) is significantly larger than the effective capacity (668,818 MB), which indicates that some nodes contributing to this queue's allocation are decommissioned or unhealthy. The scheduler is honoring the configured weight, but fewer nodes are available, so the runtime guarantee is lower.
