[ 
https://issues.apache.org/jira/browse/HADOOP-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hairong Kuang updated HADOOP-1155:
----------------------------------

    Attachment: rackMap.patch

This patch is intended for review. It depends on HADOOP-1073 and collides with 
HADOOP-988. I will resubmit one after both are resolved. 

Besides the changes I suggested in the jira description, I modified the  method 
in ReplicationTargetChooser "private DatanodeDescriptor[] chooseRandom(int 
numOfReplicas, String nodes,  List<DatanodeDescriptor> excludedNodes)"  to 
return a list.


> Additional performance improvement to chooseTarget
> --------------------------------------------------
>
>                 Key: HADOOP-1155
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1155
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.12.2
>            Reporter: Hairong Kuang
>         Assigned To: Hairong Kuang
>             Fix For: 0.13.0
>
>         Attachments: rackMap.patch
>
>
> A few additional thoughts to improve the performance of chooseTarget:
> 1. Reduce the # of calls to getDistance in sortedByDistance
> 2. Improve the performance of getNode by adding a rack name to rack node map

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to