Skip to content

Commit 8826d1a

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 4716a1f commit 8826d1a

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
@@ -1321,6 +1321,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
13211321
# MetadataStore.
13221322
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
13231323

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

conf/standalone.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,29 @@ managedLedgerUnackedRangesOpenCacheSetEnabled=true
855855
# MetadataStore.
856856
managedLedgerMaxUnackedRangesToPersistInMetadataStore=1000
857857

858+
# ManagedCursorInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
859+
# If value is NONE, then save the ManagedCursorInfo bytes data directly without compression.
860+
# Using compression reduces the size of persistent cursor (subscription) metadata. This enables using a higher
861+
# managedLedgerMaxUnackedRangesToPersistInMetadataStore value and reduces the overall metadata stored in
862+
# the metadata store such as ZooKeeper.
863+
managedCursorInfoCompressionType=NONE
864+
865+
# ManagedCursorInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
866+
# 0 means compression will always apply.
867+
managedCursorInfoCompressionThresholdInBytes=16384
868+
869+
# ManagedLedgerInfo compression type, option values (NONE, LZ4, ZLIB, ZSTD, SNAPPY).
870+
# If value is invalid or NONE, then save the ManagedLedgerInfo bytes data directly without compression.
871+
# Using compression reduces the size of the persistent topic metadata. When a topic contains a large number of
872+
# individual ledgers in BookKeeper or tiered storage, compression helps prevent the metadata size from exceeding
873+
# the maximum size of a metadata store entry (ZNode in ZooKeeper). This also reduces the overall metadata stored
874+
# in the metadata store such as ZooKeeper.
875+
managedLedgerInfoCompressionType=NONE
876+
877+
# ManagedLedgerInfo compression size threshold (bytes), only compress metadata when origin size more then this value.
878+
# 0 means compression will always apply.
879+
managedLedgerInfoCompressionThresholdInBytes=16384
880+
858881
# Skip reading non-recoverable/unreadable data-ledger under managed-ledger's list. It helps when data-ledgers gets
859882
# corrupted at bookkeeper and managed-cursor is stuck at that ledger.
860883
autoSkipNonRecoverableData=false

0 commit comments

Comments
 (0)