Kafka __consumer_offsets growing in size

后端 未结 2 606
轻奢々
轻奢々 2021-01-07 15:11

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

2条回答
  •  死守一世寂寞
    2021-01-07 15:42

    1. Changing offset.retention.minutes will not help. This is to free the space used by the offsets for groups which are inactive. Assuming you do not have too many inactive group ids, you don’t need it.

    2. change the log.retention.bytes config for offsets topic and set it to lower value as per what you want. You can change this config using Kafka-config.sh or some other way you are aware of.

    Once you limit the topic size, kafka compaction will kick in when topic size reaches the threshold and clean it up for you.

提交回复
热议问题