doc-exports/docs/dms/umn/kafka-faq-0043.html
Chen, Junjie ca9677b121 DMS UMN 20230201 Version
Reviewed-by: Antonova, Ekaterina <ekantono@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-07-22 13:20:04 +00:00

16 lines
2.8 KiB
HTML

<a name="kafka-faq-0043"></a><a name="kafka-faq-0043"></a>
<h1 class="topictitle1">Will a Consumer Group Without Active Consumers Be Automatically Deleted in 14 Days?</h1>
<div id="body0000001254716933"><p id="kafka-faq-0043__p093314113619">This depends on the <strong id="kafka-faq-0043__b153191322102314">offsets.retention.minutes</strong> and <strong id="kafka-faq-0043__b18841236123716">auto.create.groups.enable</strong> parameters.</p>
<ul id="kafka-faq-0043__ul64371941143718"><li id="kafka-faq-0043__li74411242387">For instances created much earlier, <strong id="kafka-faq-0043__b1441122790">auto.create.groups.enable</strong> is set to <strong id="kafka-faq-0043__b1344722199">true</strong> by default. <strong id="kafka-faq-0043__b8446228917">offsets.retention.minutes</strong> determines how long before a consumer group is deleted automatically, which can be changed on the console. For details, see <a href="kafka-ug-0007.html">Modifying Kafka Instance Configuration Parameters</a>.</li><li id="kafka-faq-0043__li184871512219">For newly created instances:<ul id="kafka-faq-0043__ul143481836296"><li id="kafka-faq-0043__li139061637592">If <strong id="kafka-faq-0043__b1390683717917">auto.create.groups.enable</strong> is <strong id="kafka-faq-0043__b20202945135019">false</strong>, you need to manually delete consumer groups.</li><li id="kafka-faq-0043__li79067378913">If <strong id="kafka-faq-0043__b149065370910">auto.create.groups.enable</strong> is <strong id="kafka-faq-0043__b2821541135117">true</strong>, a consumer group that has never committed an offset will be automatically deleted after 10 minutes.</li><li id="kafka-faq-0043__li8906143711910">If <strong id="kafka-faq-0043__b9337191145813">auto.create.groups.enable</strong> is <strong id="kafka-faq-0043__b203371611155812">true</strong>, and a consumer group has committed an offset, <strong id="kafka-faq-0043__b151566376159">offsets.retention.minutes</strong> determines how long before the group is deleted automatically, which can be changed on the console. For details, see <a href="kafka-ug-0007.html">Modifying Kafka Instance Configuration Parameters</a>.</li></ul>
</li></ul>
<p id="kafka-faq-0043__p31251757201617">Kafka uses the <strong id="kafka-faq-0043__b457617446710">offsets.retention.minutes</strong> parameter to control how long to keep offsets for a consumer group. If offsets are not committed within this period, they will be deleted. If Kafka determines that there are no active consumers in a consumer group (for example, when the consumer group is empty) and there are no offsets, Kafka will delete the consumer group.</p>
<p id="kafka-faq-0043__p1595465285520"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-faq-200423001.html">Consumer Groups</a></div>
</div>
</div>