Manage Consumer Groups
This article introduces the basic concepts of Consumer Groups, relevant constraints, and operations related to viewing, modifying, and deleting Consumer Groups.
Consumer Group
Referencing the domain model of Apache Kafka®, a Consumer Group is a load balancing grouping in the Kafka system that handles multiple consumers with consistent consumption behavior.
Unlike a Consumer, a Consumer Group is not a running entity but a logical resource. In Kafka, horizontal scalability of consumption performance and high availability disaster recovery are achieved by initializing multiple consumers within a consumer group.
Viewing Consumer Group Details
Procedure
Log in to the environment console, click Instance List in the left navigation bar. Then, in the instance list, click the target instance name to enter the instance's internal functions.
In the left navigation bar, click on Consumer Groups, then find the target Consumer Group on the Consumer Groups page.
Click on the target Consumer Group to view summary information, client connection information, subscription relationships, consumption progress, and related Metrics data.
Reset Consumption Offset
Users can reset the consumption offset to clear accumulated or unwanted messages before resuming consumption. Alternatively, they can jump to a specific time point to consume messages from that point onwards, regardless of whether messages before that time point have been consumed.
When resetting the consumption offset, the corresponding Consumer Group must be in an Empty state, meaning the Consumer must be offline.
Procedure
Locate the Consumer Group whose consumption offset needs to be reset, and click on Reset Offset on its Details Page.
Choose from the following options based on actual needs:
Reset based on relative time: last 5 minutes, last 1 hour, last 24 hours
Reset progress based on a specific time point: custom timestamp
Reset by relative position: latest offset, earliest offset
Reset by specified offset: custom offset
Delete Consumer Group
After deleting a Consumer Group, all consumers under the Consumer Group may be unable to consume messages, and the previous state data cannot be restored. Therefore, you must first confirm that the business no longer uses it and ensure that the Consumer Group is in a Dead or Empty state.
Procedure
Log in to the environment console, click Instance List in the left navigation bar. Then, in the instance list, click the target instance name to enter the instance's internal functions.
Click Consumer Group in the left navigation bar, and then find the target Consumer Group on the Consumer Group list page.
Click the action button on the right, click delete, and complete the secondary confirmation to delete.