简体   繁体   中英

How to flush the __consumer_offsets topic?

How can I flush the __consumer_offsets topic?

Are there best practices for this topic?

I have just set the offsets.retention.minutes=1, restarted the broker, checked in the log that offsets.retention.minutes=1 but the size of the 50 partitions of the __consumer_offsets topic is still the same.

Why?

offsets.retention.minutes only applies when __consumer_offsets doesn't exist already.

You'd change the retention like any other topic, going forward - Purge Kafka Topic , however "best practice" says to leave the topic alone and let the LogCleaner handle removing old consumer groups

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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