Skip to content

Commit ab8c810

Browse files
lhotariganesh-ctds
authored andcommitted
[improve][broker] Add managedCursor/LedgerInfoCompressionType settings to broker.conf (apache#24391)
(cherry picked from commit 1cc2402) (cherry picked from commit b55a3f7)
1 parent c4780f4 commit ab8c810

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

conf/broker.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,29 @@ managedLedgerMaxReadsInFlightSizeInMB=0
13091309
# MetadataStore.
13101310
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
13111311

1312+
# ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
1313+
# If value is NONE, then save the ManagedCursorInfo bytes data directly without compression.
1314+
# Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher
1315+
# managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in
1316+
# the metadata store such as ZooKeeper.
1317+
managedCursorInfoCompressionType=NONE
1318+
1319+
# ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
1320+
# 0 means compression will always apply.
1321+
managedCursorInfoCompressionThresholdInBytes=16384
1322+
1323+
# ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
1324+
# If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression.
1325+
# Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of
1326+
# individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding
1327+
# the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored
1328+
# in the metadata store such as ZooKeeper.
1329+
managedLedgerInfoCompressionType=NONE
1330+
1331+
# ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
1332+
# 0 means compression will always apply.
1333+
managedLedgerInfoCompressionThresholdInBytes=16384
1334+
13121335
# Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets
13131336
# corrupted at bookkeeper and managed-cursor is stuck at that ledger.
13141337
autoSkipNonRecoverableData=false

conf/standalone.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,29 @@ managedLedgerMaxUnackedRangesToPersist=10000
838838
# MetadataStore.
839839
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
840840

841+
# ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
842+
# If value is NONE, then save the ManagedCursorInfo bytes data directly without compression.
843+
# Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher
844+
# managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in
845+
# the metadata store such as ZooKeeper.
846+
managedCursorInfoCompressionType=NONE
847+
848+
# ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
849+
# 0 means compression will always apply.
850+
managedCursorInfoCompressionThresholdInBytes=16384
851+
852+
# ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
853+
# If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression.
854+
# Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of
855+
# individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding
856+
# the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored
857+
# in the metadata store such as ZooKeeper.
858+
managedLedgerInfoCompressionType=NONE
859+
860+
# ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
861+
# 0 means compression will always apply.
862+
managedLedgerInfoCompressionThresholdInBytes=16384
863+
841864
# Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets
842865
# corrupted at bookkeeper and managed-cursor is stuck at that ledger.
843866
autoSkipNonRecoverableData=false

0 commit comments

Comments
 (0)