You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2024/03/19 16:57:01 UTC
(pulsar) branch master updated: [improve][broker] Add missing configuration keys for caching catch-up reads (#22295)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 2803ba20ed4 [improve][broker] Add missing configuration keys for caching catch-up reads (#22295)
2803ba20ed4 is described below
commit 2803ba20ed48b3fe9c251f69246249ff3fbd47dd
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Tue Mar 19 09:56:53 2024 -0700
[improve][broker] Add missing configuration keys for caching catch-up reads (#22295)
---
conf/broker.conf | 12 +++++++++++-
conf/standalone.conf | 4 ++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/conf/broker.conf b/conf/broker.conf
index ea98ad4a9b5..fd6bba0f45d 100644
--- a/conf/broker.conf
+++ b/conf/broker.conf
@@ -1147,6 +1147,16 @@ managedLedgerCacheEvictionTimeThresholdMillis=1000
# and thus should be set as inactive.
managedLedgerCursorBackloggedThreshold=1000
+# Minimum cursors that must be in backlog state to cache and reuse the read entries.
+# (Default =0 to disable backlog reach cache)
+managedLedgerMinimumBacklogCursorsForCaching=0
+
+# Minimum backlog entries for any cursor before start caching reads.
+managedLedgerMinimumBacklogEntriesForCaching=1000
+
+# Maximum backlog entry difference to prevent caching entries that can't be reused.
+managedLedgerMaxBacklogBetweenCursorsForCaching=1000
+
# Rate limit the amount of writes per second generated by consumer acking the messages
managedLedgerDefaultMarkDeleteRateLimit=1.0
@@ -1849,4 +1859,4 @@ brokerInterceptorsDirectory=./interceptors
brokerInterceptors=
# Enable or disable the broker interceptor, which is only used for testing for now
-disableBrokerInterceptors=true
\ No newline at end of file
+disableBrokerInterceptors=true
diff --git a/conf/standalone.conf b/conf/standalone.conf
index a916a2f477e..5c94d63817a 100644
--- a/conf/standalone.conf
+++ b/conf/standalone.conf
@@ -807,10 +807,10 @@ managedLedgerNewEntriesCheckDelayInMillis=10
managedLedgerMinimumBacklogCursorsForCaching=0
# Minimum backlog entries for any cursor before start caching reads.
-managedLedgerMinimumBacklogEntriesForCaching=100
+managedLedgerMinimumBacklogEntriesForCaching=1000
# Maximum backlog entry difference to prevent caching entries that can't be reused.
-managedLedgerMaxBacklogBetweenCursorsForCaching=10000
+managedLedgerMaxBacklogBetweenCursorsForCaching=1000
# Use Open Range-Set to cache unacked messages
managedLedgerUnackedRangesOpenCacheSetEnabled=true