@InterfaceAudience.Private public class StreamSlowMonitor extends Object implements ConfigurationObserver
| Modifier and Type | Field and Description |
|---|---|
static String |
DATANODE_SLOW_PACKET_PROCESS_TIME_KEY
Configure for the slow packet process time, a duration from send to ACK.
|
| Constructor and Description |
|---|
StreamSlowMonitor(org.apache.hadoop.conf.Configuration conf,
String name,
ExcludeDatanodeManager excludeDatanodeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkProcessTimeAndSpeed(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanodeInfo,
long packetDataLen,
long processTimeMs,
long lastAckTimestamp,
int unfinished)
Check if the packet process time shows that the relevant datanode is a slow node.
|
static StreamSlowMonitor |
create(org.apache.hadoop.conf.Configuration conf,
String name) |
ExcludeDatanodeManager |
getExcludeDatanodeManager() |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration conf) |
public static final String DATANODE_SLOW_PACKET_PROCESS_TIME_KEY
DATANODE_PACKET_FLUSH_CHECK_SPEED_MIN_DATA_LENGTH_KEYpublic StreamSlowMonitor(org.apache.hadoop.conf.Configuration conf,
String name,
ExcludeDatanodeManager excludeDatanodeManager)
public static StreamSlowMonitor create(org.apache.hadoop.conf.Configuration conf, String name)
public void checkProcessTimeAndSpeed(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanodeInfo,
long packetDataLen,
long processTimeMs,
long lastAckTimestamp,
int unfinished)
datanodeInfo - the datanode that processed the packetpacketDataLen - the data length of the packet (in bytes)processTimeMs - the process time (in ms) of the packet on the datanode,lastAckTimestamp - the last acked timestamp of the packet on another datanodeunfinished - if the packet is unfinished flushed to the datanode replicaspublic void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange in interface ConfigurationObserverpublic ExcludeDatanodeManager getExcludeDatanodeManager()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.