Skip to content

Commit f7a4453

Browse files
lhotarimanas-ctds
authored andcommitted
[improve][broker] Add managedCursor/LedgerInfoCompressionType settings to broker.conf (apache#24391)
(cherry picked from commit 1cc2402) (cherry picked from commit 5a7ad7e)
1 parent a1b5144 commit f7a4453

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
@@ -1272,6 +1272,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
12721272
# MetadataStore.
12731273
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
12741274

1275+
# ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
1276+
# If value is NONE, then save the ManagedCursorInfo bytes data directly without compression.
1277+
# Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher
1278+
# managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in
1279+
# the metadata store such as ZooKeeper.
1280+
managedCursorInfoCompressionType=NONE
1281+
1282+
# ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
1283+
# 0 means compression will always apply.
1284+
managedCursorInfoCompressionThresholdInBytes=16384
1285+
1286+
# ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
1287+
# If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression.
1288+
# Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of
1289+
# individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding
1290+
# the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored
1291+
# in the metadata store such as ZooKeeper.
1292+
managedLedgerInfoCompressionType=NONE
1293+
1294+
# ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
1295+
# 0 means compression will always apply.
1296+
managedLedgerInfoCompressionThresholdInBytes=16384
1297+
12751298
# Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets
12761299
# corrupted at bookkeeper and managed-cursor is stuck at that ledger.
12771300
autoSkipNonRecoverableData=false

conf/standalone.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
820820
# MetadataStore.
821821
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
822822

823+
# ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
824+
# If value is NONE, then save the ManagedCursorInfo bytes data directly without compression.
825+
# Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher
826+
# managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in
827+
# the metadata store such as ZooKeeper.
828+
managedCursorInfoCompressionType=NONE
829+
830+
# ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
831+
# 0 means compression will always apply.
832+
managedCursorInfoCompressionThresholdInBytes=16384
833+
834+
# ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
835+
# If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression.
836+
# Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of
837+
# individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding
838+
# the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored
839+
# in the metadata store such as ZooKeeper.
840+
managedLedgerInfoCompressionType=NONE
841+
842+
# ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
843+
# 0 means compression will always apply.
844+
managedLedgerInfoCompressionThresholdInBytes=16384
845+
823846
# Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets
824847
# corrupted at bookkeeper and managed-cursor is stuck at that ledger.
825848
autoSkipNonRecoverableData=false

0 commit comments

Comments
 (0)