7
votes

How long does kafka store the offset of a consumer-group after all consumers in that group fail? Is there a configuration variable for this?

3

3 Answers

9
votes
7
votes

The value can be configured in kafka broker using:

offsets.retention.minutes

The default is 24 hours.

See: the Kafka broker config docs.

2
votes

I have added following property in Kafka configuration, it changed the offset retention time to 7 days, and working good.

offsets.retention.minutes=10080enter image description here