kafka
resource_error
ai_generated
true
org.apache.kafka.common.errors.GroupMaxSizeReachedException: The consumer group has reached its maximum size
ID: kafka/group-max-size-exceeded
88%Fix Rate
85%Confidence
1Evidence
2024-03-15First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.5.0 | active | — | — | — |
| 3.6.0 | active | — | — | — |
| 3.7.0 | active | — | — | — |
Root Cause
The consumer group has exceeded the maximum number of members configured by group.max.size.
generic中文
消费者组的成员数超过了 group.max.size 配置的最大限制。
Official Documentation
https://kafka.apache.org/documentation/#brokerconfigs_group.max.sizeWorkarounds
-
95% success Increase group.max.size on the broker via kafka-configs.sh: kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --alter --add-config group.max.size=20
Increase group.max.size on the broker via kafka-configs.sh: kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --alter --add-config group.max.size=20
-
85% success Reduce the number of consumer instances in the group by consolidating partitions to fewer consumers.
Reduce the number of consumer instances in the group by consolidating partitions to fewer consumers.
中文步骤
Increase group.max.size on the broker via kafka-configs.sh: kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --alter --add-config group.max.size=20
Reduce the number of consumer instances in the group by consolidating partitions to fewer consumers.
Dead Ends
Common approaches that don't work:
-
95% fail
Restarting consumers individually does not resolve the underlying configuration limit.
-
90% fail
Deleting offsets only resets consumption progress, not the group membership count.