You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "lianetm (via GitHub)" <gi...@apache.org> on 2026/04/01 21:00:47 UTC
[PR] KAFKA-20376: Update consumer rebalance docs [kafka]
lianetm opened a new pull request, #21930:
URL: https://github.com/apache/kafka/pull/21930
Adding more info about assignors, evolution timeline. Updating existing info with latest state.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20376: Update consumer rebalance docs [kafka]
Posted by "lianetm (via GitHub)" <gi...@apache.org>.
lianetm merged PR #21930:
URL: https://github.com/apache/kafka/pull/21930
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20376: Update consumer rebalance docs [kafka]
Posted by "lianetm (via GitHub)" <gi...@apache.org>.
lianetm commented on PR #21930:
URL: https://github.com/apache/kafka/pull/21930#issuecomment-4199020758
Thanks for the suggestions @AndrewJSchofield . All addressed.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-20376: Update consumer rebalance docs [kafka]
Posted by "AndrewJSchofield (via GitHub)" <gi...@apache.org>.
AndrewJSchofield commented on code in PR #21930:
URL: https://github.com/apache/kafka/pull/21930#discussion_r3026325548
##########
docs/operations/consumer-rebalance-protocol.md:
##########
@@ -43,13 +44,26 @@ The consumer heartbeat interval and the session timeout are controlled by the se
-The assignment strategy is also controlled by the server. The `group.consumer.assignors` configuration can be used to specify the list of available assignors for `Consumer` groups. By default, the `uniform` assignor and the `range` assignor are configured. The first assignor in the list is used by default unless the Consumer selects a different one. It is also possible to implement custom assignment strategies on the server side by implementing the `ConsumerGroupPartitionAssignor` interface and specifying the full class name in the configuration.
+The assignment strategy is also controlled by the server. The `group.consumer.assignors` configuration can be used to specify the list of available assignors for `Consumer` groups.
+* `uniform` and `range` assignors are provided by default
+* `uniform` is the default one (first assignor in the list of `group.consumer.assignors`) unless the Consumer selects a different one (via the client config `group.remote.assignor`)
+* it is possible to implement custom assignment strategies on the server side, by implementing the `ConsumerGroupPartitionAssignor` interface and specifying the full class name in the configuration.
+
+### Migrating from Client-side Assignors
+
+The following table shows the mapping from client-side assignors to the new broker-side assignors:
Review Comment:
This PR is quite inconsistent in using server-side and broker-side. Probably ought to aim for one phrase and use it throughout.
##########
docs/operations/consumer-rebalance-protocol.md:
##########
@@ -43,13 +44,26 @@ The consumer heartbeat interval and the session timeout are controlled by the se
-The assignment strategy is also controlled by the server. The `group.consumer.assignors` configuration can be used to specify the list of available assignors for `Consumer` groups. By default, the `uniform` assignor and the `range` assignor are configured. The first assignor in the list is used by default unless the Consumer selects a different one. It is also possible to implement custom assignment strategies on the server side by implementing the `ConsumerGroupPartitionAssignor` interface and specifying the full class name in the configuration.
+The assignment strategy is also controlled by the server. The `group.consumer.assignors` configuration can be used to specify the list of available assignors for `Consumer` groups.
+* `uniform` and `range` assignors are provided by default
+* `uniform` is the default one (first assignor in the list of `group.consumer.assignors`) unless the Consumer selects a different one (via the client config `group.remote.assignor`)
+* it is possible to implement custom assignment strategies on the server side, by implementing the `ConsumerGroupPartitionAssignor` interface and specifying the full class name in the configuration.
Review Comment:
I would say "`group.consumer.assignors` configuration" just for clarity.
##########
docs/operations/consumer-rebalance-protocol.md:
##########
@@ -28,13 +28,14 @@ type: docs
## Overview
-Starting from Apache Kafka 4.0, the Next Generation of the Consumer Rebalance Protocol ([KIP-848](https://cwiki.apache.org/confluence/x/HhD1D)) is Generally Available (GA). It improves the scalability of consumer groups while simplifying consumers. It also decreases rebalance times, thanks to its fully incremental design, which no longer relies on a global synchronization barrier.
+Starting from Apache Kafka 4.0, the Next Generation of the Consumer Rebalance Protocol ([KIP-848](https://cwiki.apache.org/confluence/x/HhD1D)) is Generally Available (GA), ready for production workloads.
+It improves the scalability of consumer groups while simplifying consumers. It also decreases rebalance times, thanks to its fully incremental design, which no longer relies on a global synchronization barrier.
Consumer Groups using the new protocol are now referred to as `Consumer` groups, while groups using the old protocol are referred to as `Classic` groups. Note that Classic groups can still be used to form consumer groups using the old protocol.
Review Comment:
Unless users are familiar with KIP-848, this is still perhaps a bit confusing. Maybe something such as the following would help:
> There are now two types of consumer group, named depending upon whether they are using the new "consumer" protocol or the earlier "classic" protocol.
There's lots of mention of the consumer protocol and classic protocol later on, but I think the introduction is not quite explicit enough yet.
##########
docs/operations/consumer-rebalance-protocol.md:
##########
@@ -76,11 +90,16 @@ Consumer groups can be upgraded without downtime by rolling out the consumer wit
Consumer groups can be downgraded using the opposite process. In this case, the group is converted from `Consumer` to `Classic` when the last consumer using the new consumer rebalance protocol leaves the group.
-## Limitations
+## Evolution Timeline
Review Comment:
I think this could be simplified by stating above the list that the evolution timeline is described in KIP-1274 and anticipated to be the following. Then the bullet points in the table don't need to repeat the KIP info:
* 3.7 - release in EA
* 4.0 - GA
* 5.0 - KafkaConsumer defaults to consumer protocol, but still supports classic
* 6.0 - KafkaConsumer only supports consumer protocol, although broker still supports both protocols for older clients
Something like that.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org