@Private
@Unstable
public class OutlierDetector
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
OutlierDetector(long minNumResources,
long lowThresholdMs) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Double |
computeMad(java.util.List<java.lang.Double> sortedValues) |
Compute the Median Absolute Deviation of a sorted list.
|
static java.lang.Double |
computeMedian(java.util.List<java.lang.Double> sortedValues) |
Compute the median of a sorted list.
|
long |
getLowThresholdMs() |
|
long |
getMinOutlierDetectionNodes() |
|
java.util.Map<java.lang.String,org.apache.hadoop.hdfs.server.protocol.OutlierMetrics> |
getOutlierMetrics(java.util.Map<java.lang.String,java.lang.Double> stats) |
Return a set of nodes whose latency is much higher than
their counterparts.
|
java.util.Map<java.lang.String,java.lang.Double> |
getOutliers(java.util.Map<java.lang.String,java.lang.Double> stats) |
Return a set of nodes/ disks whose latency is much higher than
their counterparts.
|
void |
setLowThresholdMs(long thresholdMs) |
|
void |
setMinNumResources(long minNodes) |
public OutlierDetector(long minNumResources,
long lowThresholdMs)
public java.util.Map<java.lang.String,java.lang.Double> getOutliers(java.util.Map<java.lang.String,java.lang.Double> stats)
public java.util.Map<java.lang.String,org.apache.hadoop.hdfs.server.protocol.OutlierMetrics> getOutlierMetrics(java.util.Map<java.lang.String,java.lang.Double> stats)
stats - map of aggregate latency entries.public static java.lang.Double computeMad(java.util.List<java.lang.Double> sortedValues)
public static java.lang.Double computeMedian(java.util.List<java.lang.Double> sortedValues)
public void setMinNumResources(long minNodes)
public long getMinOutlierDetectionNodes()
public void setLowThresholdMs(long thresholdMs)
public long getLowThresholdMs()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.