PoAn Yang created KAFKA-17967:
---------------------------------

             Summary: Dynamic change ProducerStateEntry#NUM_BATCHES_TO_RETAIN 
based on max.in.flight.requests.per.connection
                 Key: KAFKA-17967
                 URL: https://issues.apache.org/jira/browse/KAFKA-17967
             Project: Kafka
          Issue Type: Improvement
            Reporter: PoAn Yang
            Assignee: PoAn Yang


Followup from 
https://issues.apache.org/jira/browse/KAFKA-17926?focusedCommentId=17895138&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17895138

In server side, by default, we set ProducerStateEntry#NUM_BATCHES_TO_RETAIN as 
5 for each producer. In client side, the max in flight requests can be changed 
by max.in.flight.requests.per.connection. We can enhance the producer request 
to carry the max.in.flight.requests.per.connection value, allowing the server 
to initialize or adjust ProducerStateEntry with the correct size.



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

Reply via email to