This is an automated email from the ASF dual-hosted git repository.
showuon pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 21db7e00bc6 KAFKA-19573: Update num.recovery.threads.per.data.dir
configs (#20299)
21db7e00bc6 is described below
commit 21db7e00bc6d26d31d8e713a5b29a24a426520c7
Author: Federico Valeri <[email protected]>
AuthorDate: Thu Aug 7 08:30:10 2025 +0200
KAFKA-19573: Update num.recovery.threads.per.data.dir configs (#20299)
The default value of `num.recovery.threads.per.data.dir` is now 2
according to KIP-1030. We should update config files which are still
setting 1.
---------
Signed-off-by: Federico Valeri <[email protected]>
Reviewers: Luke Chen <[email protected]>
---
config/broker.properties | 4 ++--
config/controller.properties | 4 ++--
config/server.properties | 4 ++--
docker/server.properties | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/config/broker.properties b/config/broker.properties
index 61a536c9b30..4a75f0b12d6 100644
--- a/config/broker.properties
+++ b/config/broker.properties
@@ -75,8 +75,8 @@ log.dirs=/tmp/kraft-broker-logs
num.partitions=1
# The number of threads per data directory to be used for log recovery at
startup and flushing at shutdown.
-# This value is recommended to be increased for installations with data dirs
located in RAID array.
-num.recovery.threads.per.data.dir=1
+# This value is recommended to be increased based on the installation
resources.
+num.recovery.threads.per.data.dir=2
############################# Internal Topic Settings
#############################
# The replication factor for the group metadata internal topics
"__consumer_offsets" and "__transaction_state"
diff --git a/config/controller.properties b/config/controller.properties
index 84963c95701..3cf3a58b606 100644
--- a/config/controller.properties
+++ b/config/controller.properties
@@ -75,8 +75,8 @@ log.dirs=/tmp/kraft-controller-logs
num.partitions=1
# The number of threads per data directory to be used for log recovery at
startup and flushing at shutdown.
-# This value is recommended to be increased for installations with data dirs
located in RAID array.
-num.recovery.threads.per.data.dir=1
+# This value is recommended to be increased based on the installation
resources.
+num.recovery.threads.per.data.dir=2
############################# Internal Topic Settings
#############################
# The replication factor for the group metadata internal topics
"__consumer_offsets" and "__transaction_state"
diff --git a/config/server.properties b/config/server.properties
index d4b1fe0bc4d..7f1773d354e 100644
--- a/config/server.properties
+++ b/config/server.properties
@@ -78,8 +78,8 @@ log.dirs=/tmp/kraft-combined-logs
num.partitions=1
# The number of threads per data directory to be used for log recovery at
startup and flushing at shutdown.
-# This value is recommended to be increased for installations with data dirs
located in RAID array.
-num.recovery.threads.per.data.dir=1
+# This value is recommended to be increased based on the installation
resources.
+num.recovery.threads.per.data.dir=2
############################# Internal Topic Settings
#############################
# The replication factor for the group metadata internal topics
"__consumer_offsets", "__share_group_state" and "__transaction_state"
diff --git a/docker/server.properties b/docker/server.properties
index eb0b445c344..8ed486f3736 100644
--- a/docker/server.properties
+++ b/docker/server.properties
@@ -87,8 +87,8 @@ log.dirs=/tmp/kraft-combined-logs
num.partitions=1
# The number of threads per data directory to be used for log recovery at
startup and flushing at shutdown.
-# This value is recommended to be increased for installations with data dirs
located in RAID array.
-num.recovery.threads.per.data.dir=1
+# This value is recommended to be increased based on the installation
resources.
+num.recovery.threads.per.data.dir=2
############################# Internal Topic Settings
#############################
# The replication factor for the group metadata internal topics
"__consumer_offsets", "__share_group_state" and "__transaction_state"