rpk group describe
An rpk command that shows a consumer group's state, members and, per partition, the committed offset, log end offset and lag.
In more detail
It is the quickest way to see whether a group is keeping up. The CURRENT-OFFSET column is the committed offset and LAG is the log end offset minus it.
Example
rpk group describe m07l04-grpRelated terms
- rpk — The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
- consumer group — A set of consumers sharing one group ID that divide a topic's partitions between them so each partition is read by only one member at a time.
- consumer lag — How many records a consumer group has not yet committed on a partition: the log end offset minus the committed offset.
- committed offset — The offset a consumer group has saved on the broker for a partition, marking the next record it should read after a restart.
- log end offset — The offset that the next record written to a partition will receive, one more than the offset of the newest record.
Taught in
- Consumer Groups And Partition Assignment — Apache Kafka & Event Streaming
- Committing Offsets: Auto, Manual And Lag — Apache Kafka & Event Streaming
- Rebalancing And Its Cost — Apache Kafka & Event Streaming
- Watching Lag And Sizing Partitions — Apache Kafka & Event Streaming