Skip to content

Commit df99ac0

Browse files
HexiaoqiaoS O'Donnell
authored andcommitted
HDFS-15942. Increase Quota initialization threads. Contributed by Stephen O'Donnell.
(cherry picked from commit 459df41)
1 parent ef95f7a commit df99ac0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
374374
public static final String DFS_NAMENODE_EDITS_DIR_MINIMUM_KEY = "dfs.namenode.edits.dir.minimum";
375375
public static final int DFS_NAMENODE_EDITS_DIR_MINIMUM_DEFAULT = 1;
376376
public static final String DFS_NAMENODE_QUOTA_INIT_THREADS_KEY = "dfs.namenode.quota.init-threads";
377-
public static final int DFS_NAMENODE_QUOTA_INIT_THREADS_DEFAULT = 4;
377+
public static final int DFS_NAMENODE_QUOTA_INIT_THREADS_DEFAULT = 12;
378378

379379
public static final String DFS_NAMENODE_EDIT_LOG_AUTOROLL_MULTIPLIER_THRESHOLD = "dfs.namenode.edit.log.autoroll.multiplier.threshold";
380380
public static final float

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
@@ -3632,11 +3632,11 @@
36323632

36333633
<property>
36343634
<name>dfs.namenode.quota.init-threads</name>
3635-
<value>4</value>
3635+
<value>12</value>
36363636
<description>
36373637
The number of concurrent threads to be used in quota initialization. The
36383638
speed of quota initialization also affects the namenode fail-over latency.
3639-
If the size of name space is big, try increasing this.
3639+
If the size of name space is big, try increasing this to 16 or higher.
36403640
</description>
36413641
</property>
36423642

0 commit comments

Comments
 (0)