Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2467B1775C for ; Tue, 14 Apr 2015 03:31:13 +0000 (UTC) Received: (qmail 67065 invoked by uid 500); 14 Apr 2015 03:31:12 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67012 invoked by uid 500); 14 Apr 2015 03:31:12 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 66997 invoked by uid 99); 14 Apr 2015 03:31:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 03:31:12 +0000 Date: Tue, 14 Apr 2015 03:31:12 +0000 (UTC) From: "Koji Noguchi (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8131) Implement a space balanced block placement policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14493504#comment-14493504 ] Koji Noguchi commented on HDFS-8131: ------------------------------------ Thanks for correcting my misunderstanding. I clearly missed the "a little high possibility" part. My bad. > Implement a space balanced block placement policy > ------------------------------------------------- > > Key: HDFS-8131 > URL: https://issues.apache.org/jira/browse/HDFS-8131 > Project: Hadoop HDFS > Issue Type: Improvement > Affects Versions: 3.0.0 > Reporter: Liu Shaohui > Assignee: Liu Shaohui > Priority: Minor > Fix For: 3.0.0 > > Attachments: HDFS-8131-v1.diff > > > The default block placement policy will choose datanodes for new blocks randomly, which will result in unbalanced space used percent among datanodes after an cluster expansion. The old datanodes always are in high used percent of space and new added ones are in low percent. > Through we can used the external balance tool to balance the space used rate, it will cost extra network IO and it's not easy to control the balance speed. > An easy solution is to implement an balanced block placement policy which will choose low used percent datanodes for new blocks with a little high possibility. In a not long term, the used percent of datanodes will trend to be balanced. > Suggestions and discussions are welcomed. Thanks -- This message was sent by Atlassian JIRA (v6.3.4#6332)