You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/27 17:31:41 UTC
[jira] [Commented] (KAFKA-4881) Add internal leave.group.on.close
config to consumer
[ https://issues.apache.org/jira/browse/KAFKA-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943689#comment-15943689 ]
ASF GitHub Bot commented on KAFKA-4881:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/kafka/pull/2650
> Add internal leave.group.on.close config to consumer
> -----------------------------------------------------
>
> Key: KAFKA-4881
> URL: https://issues.apache.org/jira/browse/KAFKA-4881
> Project: Kafka
> Issue Type: New Feature
> Components: clients
> Reporter: Damian Guy
> Assignee: Damian Guy
> Fix For: 0.11.0.0
>
>
> In streams we need to reduce the number of rebalances as they cause expensive shuffling of state during {{onPartitionsAssigned}} and {{onPartitionsRevoked}}. To achieve this we can choose to not send leave the group when a streams consumer is closed. This means that during bounces (with appropriate session timeout settings) we will see at most one rebalance per instance bounce.
> As this is an optimization that is only relevant to streams at the moment, initially we will do this by adding an internal config to the consumer {{leave.group.on.close}}, this will default to true. When it is set to false {{AbstractCoordinator}} won't send the {{LeaveGroupRequest}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)