You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2021/11/18 09:31:26 UTC
[pulsar] 03/12: [Config] Add readWorkerThreadsThrottlingEnabled to conf/bookkeeper.conf (#12666)
This is an automated email from the ASF dual-hosted git repository.
penghui pushed a commit to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 5e2657a8d68d9614579f533eb3c179edb612baf9
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Wed Nov 10 06:03:06 2021 +0200
[Config] Add readWorkerThreadsThrottlingEnabled to conf/bookkeeper.conf (#12666)
- https://github.com/apache/bookkeeper/pull/2646 added "Auto-throttle read operations" which is
enabled by default
(cherry picked from commit fc6d6dadaf77766189d0731196646d4c79874c8c)
---
conf/bookkeeper.conf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/conf/bookkeeper.conf b/conf/bookkeeper.conf
index 22a9f53..ac93efc 100644
--- a/conf/bookkeeper.conf
+++ b/conf/bookkeeper.conf
@@ -166,6 +166,11 @@ maxPendingReadRequestsPerThread=2500
# avoid the executor queue to grow indefinitely
maxPendingAddRequestsPerThread=10000
+# Use auto-throttling of the read-worker threads. This is done
+# to ensure the bookie is not using unlimited amount of memory
+# to respond to read-requests.
+readWorkerThreadsThrottlingEnabled=true
+
# Option to enable busy-wait settings. Default is false.
# WARNING: This option will enable spin-waiting on executors and IO threads in order to reduce latency during
# context switches. The spinning will consume 100% CPU even when bookie is not doing any work. It is recommended to