nandini12396 opened a new pull request, #21089:
URL: https://github.com/apache/kafka/pull/21089

   Caffeine cache currently only uses size-based eviction with frequency 
buckets. Within same frequency bucket,
   larger entries are always evicted. This causes old (smaller) index files to 
stay in cache indefinitely while
   newer indices thrash, resulting in:
   - Poor cache utilization for backfill workloads
   - Higher fetch errors
   - Suboptimal memory usage
   
   Solution:
   ---------
   Add time-based eviction via expireAfterAccess in addition to size-based 
eviction:
   
   1. New config: remote.log.index.file.cache.ttl.ms (default: -1/disabled)
   2. If TTL > 0: entries evicted after last access time expires


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to