Hi ally,

Thanks for working on this! The change needs the KIP-1187
<https://cwiki.apache.org/confluence/display/KAFKA/KIP-1187%3A+Support+to+retrieve+remote+log+size+via+DescribeLogDirs+RPC>
to
be approved. Please follow the KIP discussion.
KAFKA-15300 is a duplicate of KAFKA-19368 ticket.

--
Kamal

On Thu, Jul 17, 2025 at 1:18 PM ally heev <allyh...@gmail.com> wrote:

> Hi everyone,
>
> I'm currently working on KAFKA-15300
> <https://issues.apache.org/jira/browse/KAFKA-15300>. The kafka-log-dirs.sh
> tool currently provides output like this:
>
>
> {"brokers":[{"broker":1,"logDirs":[{"partitions":[{"partition":"tieredTopic-0","size":0,"offsetLag":0,"isFuture":false}],"error":null,"logDir":"/tmp/kraft-combined-logs"}]}],"version":1}
>
> To incorporate remoteLogSize into this output, I'm proposing the following:
>
>    -
>
>    Rename the existing size property to *localLogSize* to reflect that it
>    represents the local log size.
>    -
>
>    Calculate *remoteLogSize* by querying the remoteLogSizeMetric
>    <
> https://github.com/aheev/kafka/blob/409a43eff77511e89bba2f95934cb1ebc417236d/storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteStorageMetrics.java#L44
> >.
>    Is there an alternative method for this?
>    -
>
>    Introduce *totalSize* as the sum of localLogSize + remoteLogSize.
>
> Does this approach seem sound?"
>

Reply via email to