conduktor.io ↗

KIP-852 — Optimize calculation of size for log in remote tier

Accepted Kafka 3.6 Tiered StorageMetrics

Adds a RemoteLogMetadataManager#remoteLogSize(TopicIdPartition) API and a RemoteLogSizeBytes metric, allowing RLMM implementations to compute total remote tier size without listing all segment metadata. The existing O(num_remote_segments) scan via listRemoteLogSegments() becomes prohibitively expensive as the number of remote segments grows, slowing the retention enforcement loop.

Details

AuthorDivij Vaidya
StatusAccepted
Kafka Version3.6
JIRAKAFKA-14038
WikiView on Apache Wiki
Created2022-07-01
Last Modified2023-07-26
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.