Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 60497 invoked from network); 27 Feb 2007 21:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 21:40:30 -0000 Received: (qmail 5320 invoked by uid 500); 27 Feb 2007 21:40:36 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 5276 invoked by uid 500); 27 Feb 2007 21:40:36 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 5057 invoked by uid 99); 27 Feb 2007 21:40:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 13:40:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 13:40:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BEACE714049 for ; Tue, 27 Feb 2007 13:40:05 -0800 (PST) Message-ID: <21237997.1172612405778.JavaMail.jira@brutus> Date: Tue, 27 Feb 2007 13:40:05 -0800 (PST) From: "Hairong Kuang (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-972) Improve the rack-aware replica placement performance In-Reply-To: <5633002.1170642125511.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hairong Kuang updated HADOOP-972: --------------------------------- Status: Open (was: Patch Available) > Improve the rack-aware replica placement performance > ---------------------------------------------------- > > Key: HADOOP-972 > URL: https://issues.apache.org/jira/browse/HADOOP-972 > Project: Hadoop > Issue Type: Improvement > Components: dfs > Affects Versions: 0.11.0 > Reporter: Hairong Kuang > Assigned To: Hairong Kuang > Fix For: 0.12.0 > > Attachments: rack_performance.patch, rack_performance2.patch, rack_performance3.patch > > > This issue aims to improve the rack-aware replica placement performance. A major idea is to avoid constructing lists of possible targets for random selection in chooseTarget, which currently needs interating all DatanodeDescriptors. I plan to change the NetworkTopology data structure as follow: > 1. each InnerNode stores its childrens as a list; > 2. each InnerNode adds a new field numberOfLeaves the total number of leaves (i.e. data nodes) in its subtree. > NetworkTopology will support two new methods: > 1. DatanodeDescriptor chooseRandom( String scope): it randomly choose one leave from scope. > 2. DatanodeDescriptor chooseRandomExclude(String excludedScope): it randomly choose one leave from ~scope > In addition, Issue 971 will also help improve the performance of the rack-aware DFS patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.