Skip to Main Content

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

Steps

  1. Log in to the environment console. In the left navigation bar, click on Instance List. Then, in the instance list, click on the target instance name to enter the internal features of the instance.

  2. In the left navigation bar, click on Consumer Groups, then find the target Consumer Group on the Consumer Groups page.

  3. 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.

Steps

  1. Locate the Consumer Group whose consumption offset needs to be reset, and click on Reset Offset on its Details Page.

  2. Choose from the following options based on actual needs:

    1. Reset based on relative time: last 5 minutes, last 1 hour, last 24 hours

    2. Reset progress based on a specific time point: custom timestamp

    3. Reset by relative position: latest offset, earliest offset

    4. 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

  1. 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.

  2. Click Consumer Group in the left navigation bar, and then find the target Consumer Group on the Consumer Group list page.

  3. Click the action button on the right, click delete, and complete the secondary confirmation to delete.