Updated on 2023-11-29 GMT+08:00

Resetting the Consumer Offset

Scenario

Resetting the consumer offset is to change the retrieval position of a consumer.

Messages may be retrieved more than once after the offset is reset. Exercise caution when performing this operation.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner to select a region.

    Select the region where your RocketMQ instance is located.

  3. Click and choose Application > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
  4. Click a RocketMQ instance to go to the details page.
  5. In the navigation pane, choose Consumer Groups.
  6. In the row that contains the desired consumer group, choose More > Reset Consumer Offset.
  7. Set parameters by referring to Table 1.

    Table 1 Parameters for resetting the consumer offset

    Parameter

    Description

    Topic Name

    Select the topic whose consumer offset is to be reset.

    Time

    Select a time point. After the reset is complete, retrieval starts from this time point.

    • Custom: a custom time point
    • Earliest: the earliest offset
    • Latest: the latest offset

  8. Click OK.
  9. Click Yes in the confirmation dialog box. The consumer offset is reset.