[ 
https://issues.apache.org/jira/browse/KAFKA-14912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757900#comment-17757900
 ] 

Divij Vaidya commented on KAFKA-14912:
--------------------------------------

> But how to measure and get the size of the entry? [~divijvaidya] 

Using Files.size? The entries that this cache points to are actually memory 
mapped files on the disk. You can also store the size of an entry in `Entry` 
when trying to add a particular entry to the cache.

> Introduce a configuration for remote index cache size, preferably a dynamic 
> config.
> -----------------------------------------------------------------------------------
>
>                 Key: KAFKA-14912
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14912
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Satish Duggana
>            Assignee: hudeqi
>            Priority: Major
>
> Context: We need to make the 1024 value here [1] as dynamically configurable
> [1] 
> https://github.com/apache/kafka/blob/8d24716f27b307da79a819487aefb8dec79b4ca8/storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java#L119



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to