I am trying to understand some fundamental Kafka
concepts so that I can properly monitor the progress of my KafkaStreams based application.
Specifically for debugging purposes I need to be able to have my application re-consume a whole topic. For that I used the reset tool.
After executing the script looking into the Kafka Manager for some inputs topics I see that the Consumer Offset
has decreased and the Lag
has increased (which makes sense). Although the Consumer Offset
is not going to zero. I am trying to interpret that but I haven't found a concrete explanation of what the Consumer Offset
and Logsize
in Kafka Manager are referring to.
To make it fit what I see I assume that the Logsize
is the total amount of messages placed into the topic since it's beginning but not necessarily the amount of messages currently in the topic. As some may have been thrown away due their age exceeding the retention period. Am I right?
If not, then what is the explanation behind the fact that after running the reset tool for some input topics I observe that the Consumer Offset
is equal to the Logsize
(and not zero) and Lag
is zero?