lifepuzzlefun opened a new issue, #20307: URL: https://github.com/apache/pulsar/issues/20307
# Background knowledge current we support to set compression on ManagedLedger and ManagedCursor metadata by `managedLedgerInfoCompressionType` and `managedCursorInfoCompressionType` # Motivation sometimes the metadata is too small to compress. so a size based config is needed. # Goals ## In Scope add config to set size threshold for compression on metadata. `managedLedgerInfoCompressionSizeThreshold` `managedCursorInfoCompressionSizeThreshold` default value is 0. so this won't change the behaviour if set `managedLedgerInfoCompressionType` if the setting is set, only compress the metadata if the persistent size if above the setting. # High Level Design add config in `ServerConfiguration` when init `ManagedLedgerConfig` the setting is passed. when persistent metadata the config will affect the compression logic. ### Configuration new configuration: `managedLedgerInfoCompressionSizeThreshold` `managedCursorInfoCompressionSizeThreshold` # Backward & Forward Compatability ## Revert the compression logic is transparent. if remove the config nothing changed. # Links pr that introduce metadata compression: https://github.com/apache/pulsar/pull/11490 https://github.com/apache/pulsar/pull/14542 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org