@ThreadSafe public class ResourceDistributionGoalMetrics extends BaseDistributionGoalMetrics
BaseDistributionGoalMetrics.goalName
:
BaseDistributionGoalMetrics
.
NUM_BROKERS_UNDER_LOW_UTIL_METRIC_NAME
-
the number of brokers that fall below the minimum utilization rate of the goal during the optimization run.
Note that brokers counted toward this metric are not counted toward the other min/max
resource utilization metrics, as they will not be a cause for balancing.
LOW_UTILIZATION_THRESHOLD_METRIC_NAME
-
the resource distribution goal's low utilization threshold for this optimization run, in absolute terms (e.g GB, KB/s, etc. depending on the goal).
Any brokers under this threshold will have the goal attempt to move resources out of them.
GOAL_TAG, goalName, lowerBalanceThresholdValue, MAX_RESOURCE_METRIC_NAME, maxBrokerResource, metricsRegistry, MIN_RESOURCE_METRIC_NAME, minBrokerResource, tags, upperBalanceThresholdValue
Constructor and Description |
---|
ResourceDistributionGoalMetrics(String goalName,
DataBalancerMetricsRegistry metricsRegistry,
Class<?> metricClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
registerMetrics(Class<?> metricClass) |
void |
update(ResourceDistributionStatsSnapshot statsSnapshot)
Given the latest
ResourceDistributionStatsSnapshot for this goal's optimization run, update the metrics. |
update
public ResourceDistributionGoalMetrics(String goalName, DataBalancerMetricsRegistry metricsRegistry, Class<?> metricClass)
public void update(ResourceDistributionStatsSnapshot statsSnapshot)
ResourceDistributionStatsSnapshot
for this goal's optimization run, update the metrics.protected void registerMetrics(Class<?> metricClass)
registerMetrics
in class BaseDistributionGoalMetrics