Usage

Groups

Prerequisites

  • You have setup the correct access control permissions in Kpow to allow GROUP_EDIT . See: User authorization.
  • You have setup the correct Kafka ACLs if you have enabled ACLs in your Kafka cluster. See: Minimum ACL permissions.

Group actions overview

ActionDescription
Reset offsetsResetting group offsets by providing a new value or resetting them to a particular timestamp or a datetime
Clear offsetsSet the offsets to the earliest
Skip offsetsIncrementing the current offset. Can only be applied at the partition level
Remove memberOnly if the consumer group is a static consumer group (a consupmer group with group.instance.id set)

Group actions can be found in the navigation menu under the Consumers/Workflows section.

Select the consumer group you would like to manage from the dropdown, and you will see the consumer group topology.

Select consumer group

All offset management actions are available when clicking on a node:

Once you have selected a node, the available group offset actions can be found under the Mutations section on the right-hand pane.

Consumer group topology

Similarly, you can invoke the same mutations from the Consumer Details tab.

Consumer group detail actions

Offset actions

Rest offsets

Within Kpow you can change consumer group offsets from any dimension:

  • Whole group assignments
  • Host-level assignments
  • Topic-level assignments
  • Partition-level assignment

While resetting the offsets you can also choose the reset method.

  • Offset
  • Timestamp
  • Datetime (Local)

Resetting offsets by value

Scheduling a mutation

All group offset actions are scheduled, and will be invoked once all prerequisites have been met. For group offsets, the prerequisite is that the consumer group's state must be EMPTY. That is, you will have to manually scale down all instances of the consumer group to alter their offsets. This is because group actions cannot be performed on a running consumer group.

By default, Kpow will try to run the mutation for up to 15 minutes after it has been scheduled. You can cancel the mutation or view its current status by clicking on the Consumers/Mutations tab.

Scheduling a mutation

Clear offsets

This action will reset the offsets to the earliest. To clear offsets simply select the node from a workflow or in the table and click on 'Clear offsets' in the action menu.

Clear offsets

Skip offset (partition level)

Increments the current offset by 1 for the partition assignment. To skip offsets select the partition node from a workflow or in the table and click on 'Skip offset' in the action menu.

Skip offset

Removing Consumer Group Members

If you have a static consumer group (a consumer group with group.instance.id set) you can use Kpow to remove a member from the group. This can be useful as static consumer groups do not send a leave group request when they go offline, and instead rely on session.timeout to trigger a group rebalance.

When removing a member from a static consumer group it will have the effect of triggering a rebalance. This can be useful if you want to speed up the rebalancing process and don't wish to wait for the session.timeout value.

To remove a member from a consumer group navigate to the member in the consumer topology or table and click the "Remove Member" action. Removing members from a consumer group requires the GROUP_DELETE RBAC action.