Skip to content

Commit 459df41

Browse files
committed
HDFS-15942. Increase Quota initialization threads. Contributed by Stephen O'Donnell.
1 parent e86050f commit 459df41

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
@@ -3735,11 +3735,11 @@
37353735

37363736
<property>
37373737
<name>dfs.namenode.quota.init-threads</name>
3738-
<value>4</value>
3738+
<value>12</value>
37393739
<description>
37403740
The number of concurrent threads to be used in quota initialization. The
37413741
speed of quota initialization also affects the namenode fail-over latency.
3742-
If the size of name space is big, try increasing this.
3742+
If the size of name space is big, try increasing this to 16 or higher.
37433743
</description>
37443744
</property>
37453745

0 commit comments

Comments
 (0)