[ https://issues.apache.org/jira/browse/KAFKA-13152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779695#comment-17779695 ]
A. Sophie Blee-Goldman commented on KAFKA-13152: ------------------------------------------------ Hey [~sagarrao] – I'm happy to try and help you get this into 3.7. As a disclaimer I do have a few other KIPs I've already promised to help land in 3.7 so this would be 3rd on my list, but we still have a good amount of time and given the KIP itself is already accepted, I think we can make it. Just give me a ping on the PR when it's ready for me to take a look. And just to refresh my memory, all the caching work – both config and metrics -- are already merged, so the only thing remaining is to add (and implement) the new input.buffer.max.bytes config. Does that sound right? > Replace "buffered.records.per.partition" & "cache.max.bytes.buffering" with > "{statestore.cache}/{input.buffer}.max.bytes" > ------------------------------------------------------------------------------------------------------------------------- > > Key: KAFKA-13152 > URL: https://issues.apache.org/jira/browse/KAFKA-13152 > Project: Kafka > Issue Type: Improvement > Components: streams > Reporter: Guozhang Wang > Assignee: Sagar Rao > Priority: Major > Labels: kip > Fix For: 3.7.0 > > > The current config "buffered.records.per.partition" controls how many records > in maximum to bookkeep, and hence it is exceed we would pause fetching from > this partition. However this config has two issues: > * It's a per-partition config, so the total memory consumed is dependent on > the dynamic number of partitions assigned. > * Record size could vary from case to case. > And hence it's hard to bound the memory usage for this buffering. We should > consider deprecating that config with a global, e.g. "input.buffer.max.bytes" > which controls how much bytes in total is allowed to be buffered. This is > doable since we buffer the raw records in <byte[], byte[]>. -- This message was sent by Atlassian Jira (v8.20.10#820010)