Scenario
In the following scenarios, you can consider viewing the list of Kafka consumer groups:
l Monitoring consumer groups: You can view the list of consumer groups to monitor and manage consumers in Kafka. You can view information such as the health status of consumer groups to ensure that consumers are working properly and identify potential issues in time.
l Dynamically adjusting the number of consumers: You can view the list of consumer groups to learn the current number and status of consumers. Depending on the actual needs, the number of consumers can be dynamically increased or decreased to accommodate different load and traffic changes.
Procedure
(1) Log in to the management console.
(2) Go to the Kafka console.
(3) In the operation column of the instance list page, click Manage in the target instance row.
(4) Click Consumer Group Management and the following list will appear.
(5) Enter the name of the consumer group in the upper right corner to query the corresponding consumer group.
Consumer Group Status Description:
Status | Description |
Empty | The consumer group has not been assigned to any partition for consumption. |
PreparingRebalance | A consumer joins or leaves the consumer group, and preparations are underway to reassign partitions. |
CompletingRebalance | 1. Partition reassignment has been completed, and the consumer group is about to start consumption.
|
Stable | Consumers in the consumer group consume messages normally, and the consumption progress is in line with the partition assignment. |
Dead | The consumer group has stopped working because there are no active consumers. |
PreparingSync | Consumer groups are preparing to synchronize consumption progress to ensure consistency among consumers. |
AwaitingSync | Consumers in the consumer group are waiting for the synchronization of consumption to be completed. |
Rebalancing | The consumer group is undergoing partition reassignment. |
DeadAndEmpty | The consumer group has stopped working and has not been assigned to any partition. |
Consumption Instance
(1) Log in to the management console.
(2) Go to the Kafka console.
(3) In the operation column of the instance list page, click Manage in the target instance row.
(4) Click Consumer Group Management to enter the consumer group management page.
(5) In the row of the target consumer group, click More - Consumer Instances.