Skip to content

Commit 5a7ad7e

Browse files
committed
[improve][broker] Add managedCursor/LedgerInfoCompressionType settings to broker.conf (apache#24391)
(cherry picked from commit 1cc2402)
1 parent 17f04ef commit 5a7ad7e

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
@@ -1267,6 +1267,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
12671267
# MetadataStore.
12681268
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
12691269

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

conf/standalone.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
813813
# MetadataStore.
814814
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
815815

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

0 commit comments

Comments
 (0)