Skip to main content
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

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

AutoMQ supports resetting consumer group offsets from the console while consumer applications keep running. Use this to replay events after fixing a processing error or skip unwanted backlog. Resetting offsets changes where the group consumes from; it does not delete messages from the Topic. Online offset reset is an AutoMQ server-side extension, available since AutoMQ 1.6.5. The standard Apache Kafka administrative offset-reset workflow requires inactive consumers. AutoMQ can reset offsets for an active group without stopping or changing consumer applications. The group coordinator fences the current group members and commits the new offsets. Consumers automatically rejoin the group and resume from those offsets. Consumer group offset reset comparison
Consumer applications stay running, but the group still rejoins and rebalances. Consumption can pause during this process.

Procedure

  1. In the console, open the target cluster’s details page and select Consumer Groups to open resource management.
  2. Find the target consumer group and select Reset Offset.
  3. Choose a reset option and specify the target time or offset:
    • Relative time: last 5 minutes, last 1 hour, or last 24 hours.
    • Specific time: a custom timestamp.
    • Relative position: the earliest or latest offset.
    • Specific offset: a custom offset.
  4. Submit the reset. The group resumes consumption from the selected offsets after it rejoins and rebalances.

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. In the left navigation pane, click Consumer Group, 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.