From 0176264762b714205d3e0b05572c805208c1c7df Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Wed, 22 May 2024 03:30:28 -0700 Subject: [PATCH] HDDS-10890. Increase default value for hdds.container.ratis.log.appender.queue.num-elements (#6711) --- .../main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java | 2 +- hadoop-hdds/common/src/main/resources/ozone-default.xml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java index 1d175197b1c..593764ee09c 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java @@ -100,7 +100,7 @@ public final class ScmConfigKeys { HDDS_CONTAINER_RATIS_LOG_APPENDER_QUEUE_NUM_ELEMENTS = "hdds.container.ratis.log.appender.queue.num-elements"; public static final int - HDDS_CONTAINER_RATIS_LOG_APPENDER_QUEUE_NUM_ELEMENTS_DEFAULT = 1; + HDDS_CONTAINER_RATIS_LOG_APPENDER_QUEUE_NUM_ELEMENTS_DEFAULT = 1024; public static final String HDDS_CONTAINER_RATIS_LOG_APPENDER_QUEUE_BYTE_LIMIT = "hdds.container.ratis.log.appender.queue.byte-limit"; public static final String diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml b/hadoop-hdds/common/src/main/resources/ozone-default.xml index 61cd415b974..d9eecdaf82e 100644 --- a/hadoop-hdds/common/src/main/resources/ozone-default.xml +++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml @@ -126,9 +126,8 @@ - hdds.container.ratis.log.appender.queue.num-elements - - 1 + hdds.container.ratis.log.appender.queue.num-elements + 1024 OZONE, DEBUG, CONTAINER, RATIS Limit for number of append entries in ratis leader's log appender queue.