We are using Kafka as a Strictly Ordered Queue and hence a single topic/single partition/single consumer group
combo is in use. I should be able to use multiple partition later in future.
My consumer is spring-boot
app listener, that produces and consumes from the same topic(s). So the consumer group is fixed and there is always a single consumer.
Kafka version 0.10.1.1
In such scenario the Log file for topic-0
and a few __consumer_offsets_XX
grows. In fact __consumer_offsets_XX
grows very high, even though it is supposed to be cleared periodically every 60 minutes (by default). The consumer doesn't read all the time but it has auto.commit.enabled=true
By default, log.retention.minutes
(default 7 days) > offset.retention.minutes
(default 1 day); but in my case, since my consumer group/consumer is fixed and single; it may not make any sense to keep the messages in topic-0
once it is consumed. Shall I make log.retention.minutes
as less as 3 days (say)?
Can I make the offset.retention.minutes
lower to be able to control the growing size of the __consumer_offsets_XX
w/o touching the auto.commit
settings?