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

Muralidhar Basani commented on KAFKA-21241:
-------------------------------------------

Thanks [~chia7712] for your inputs. Agree on both points and on splitting them.

I shall draft a KIP covering
 * increasing the upper bound of broker config group.share.max.size
 * a new group-level share.max.size, overriding the broker default and bounded 
by the broker max
 * a condition to check group.share.max.share.sessions must be >= 
group.share.max.size
 * currently based on 
[https://github.com/apache/kafka/blob/ef6a6c1edb449b41e7804ca67793f638674c87ea/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java#L733]
 client only pulls new records from the fetch buffer when the current batch is 
finished. As mentioned by Chia, introduce a window that limits the number of 
unacked messages, instead of a batch. Will put this into a different ticket.

[~sunm2n] thanks for the assignor numbers. I think for this KIP, the 
broker-side ShareSessionCache cost (active sessions x cached partitions per 
session) is probably the most useful next measurement, since session count 
grows with members per broker.

A heartbeat benchmark at 1k/10k/30k members would be a good follow-up.

> Increase the number of consumers in the share consumer group
> ------------------------------------------------------------
>
>                 Key: KAFKA-21241
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21241
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Prakhar Kulshrestha
>            Priority: Major
>         Attachments: MapBench.java, WorkingSetBench.java, 
> assignor-gc-G1.json, assignor-gc-Parallel.json, assignor-sweep-pretouch.json, 
> hashmap-isolated.json, notes.txt, working-set.json
>
>
> Currently the max  number of consumers in a share consumer group is default 
> to 200 and max to 1000.  In bigger platforms where batch processing along 
> with slow consumer use cases limiting to just 1000 consumer is very 
> restrictive.{*}{*}
> One of the scenario is a batch processing of millions of records and having 
> to parallel process 20-30k records in parallel using spring kafka concurrency 
> feature would mean we would need at least 20-30k consumers in a consumer 
> groups with around 1k pods. Current 1000 limit just let it have ~60pods.
> Request this to be reevaluated and increase the number of consumers that a 
> share group can have.
> *group.share.max.size*



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to