简体   繁体   English

Kafka 消费者组抵消保留

[英]Kafka consumer group offset retention

How long does kafka store the offset of a consumer-group after all consumers in that group fail?在该组中的所有消费者都失败后,kafka 将存储该消费者组的偏移量多长时间? Is there a configuration variable for this?是否有一个配置变量?

The right property name is:正确的属性名称是:

offsets.retention.minutes

from https://kafka.apache.org/documentation/#brokerconfigs来自https://kafka.apache.org/documentation/#brokerconfigs

The value can be configured in kafka broker using:可以使用以下命令在kafka 代理中配置该值:

offsets.retention.minutes

The default is 24 hours.默认值为24小时。

See: the Kafka broker config docs .请参阅: Kafka 代理配置文档

I have added following property in Kafka configuration, it changed the offset retention time to 7 days, and working good.我在 Kafka 配置中添加了以下属性,它将偏移保留时间更改为 7 天,并且运行良好。

offsets.retention.minutes=10080 offsets.retention.minutes=10080 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM