This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit c81aec3a16139f8023c8e8021e3ce74c974212ba
Author: Lari Hotari <[email protected]>
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 2fdb0fd..f26abe0 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

Reply via email to