Skip to content

Commit 93daf69

Browse files
Stephen O'Donnelljojochuang
authored andcommitted
HDFS-14675. Increase Balancer Defaults Further. Contributed by Stephen O'Donnell.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org> Reviewed-by: Gabor Bota <gabota@apache.org>
1 parent 4028cac commit 93daf69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
110110
public static final String DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY =
111111
HdfsClientConfigKeys.DeprecatedKeys.DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_KEY;
112112
public static final long DFS_DATANODE_BALANCE_BANDWIDTHPERSEC_DEFAULT =
113-
10 * 1024*1024;
113+
100 * 1024*1024;
114114
public static final String DFS_DATANODE_BALANCE_MAX_NUM_CONCURRENT_MOVES_KEY
115115
= "dfs.datanode.balance.max.concurrent.moves";
116116
public static final int
117-
DFS_DATANODE_BALANCE_MAX_NUM_CONCURRENT_MOVES_DEFAULT = 50;
117+
DFS_DATANODE_BALANCE_MAX_NUM_CONCURRENT_MOVES_DEFAULT = 100;
118118
@Deprecated
119119
public static final String DFS_DATANODE_READAHEAD_BYTES_KEY =
120120
HdfsClientConfigKeys.DFS_DATANODE_READAHEAD_BYTES_KEY;

hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@
990990

991991
<property>
992992
<name>dfs.datanode.balance.bandwidthPerSec</name>
993-
<value>10m</value>
993+
<value>100m</value>
994994
<description>
995995
Specifies the maximum amount of bandwidth that each datanode
996996
can utilize for the balancing purpose in term of
@@ -4068,7 +4068,7 @@
40684068

40694069
<property>
40704070
<name>dfs.datanode.balance.max.concurrent.moves</name>
4071-
<value>50</value>
4071+
<value>100</value>
40724072
<description>
40734073
Maximum number of threads for Datanode balancer pending moves. This
40744074
value is reconfigurable via the "dfsadmin -reconfig" command.

0 commit comments

Comments
 (0)