[ https://issues.apache.org/jira/browse/HDFS-15666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haibin Huang updated HDFS-15666: -------------------------------- Attachment: HDFS-15666.001.patch > add average latency information to the SlowPeerReport > ----------------------------------------------------- > > Key: HDFS-15666 > URL: https://issues.apache.org/jira/browse/HDFS-15666 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs > Reporter: Haibin Huang > Assignee: Haibin Huang > Priority: Minor > Attachments: HDFS-15666.001.patch > > > In namenode's jmx, there is a SlowDisksReport like this: > {code:java} > [{"SlowDiskID":"dn3:disk1","Latencies":{"WRITE":1000.1}},{"SlowDiskID":"dn2:disk2","Latencies":{"WRITE":1000.1}},{"SlowDiskID":"dn1:disk2","Latencies":{"READ":1000.3}},{"SlowDiskID":"dn1:disk1","Latencies":{"METADATA":1000.1,"READ":1000.8}}] > {code} > So we can know the disk io letency from this report.However, SlowPeersReport > dosen't have average latency: > {code:java} > [{"SlowNode":"node4","ReportingNodes":["node1"]},{"SlowNode":"node2","ReportingNodes":["node1","node3"]},{"SlowNode":"node1","ReportingNodes":["node2"]}] > {code} > I think we should add the average latency to the report, which can get from > org.apache.hadoop.hdfs.server.protocol.SlowPeerReports#slowPeers. > After adding the average latency, the SlowPeerReport can be like this: > {code:java} > [{"SlowNode":"node4","ReportingNodes":[{"nodeId":"node1","averageLatency":2000.0}]},{"SlowNode":"node2","ReportingNodes":[{"nodeId":"node1","averageLatency":2000.0},{"nodeId":"node3","averageLatency":1000.0}]},{"SlowNode":"node1","ReportingNodes":[{"nodeId":"node2","averageLatency":2000.0}]}]{code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org