forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
22 lines
4.2 KiB
HTML
22 lines
4.2 KiB
HTML
<a name="kafka-ug-200506001"></a><a name="kafka-ug-200506001"></a>
|
|
|
|
<h1 class="topictitle1">Modifying Topic Aging Time</h1>
|
|
<div id="body1588764286210"><p id="kafka-ug-200506001__p98435615114">Aging time is a period that messages in the topic are retained for. Consumers must retrieve messages before this period ends. Otherwise, the messages will be deleted and can no longer be retrieved.</p>
|
|
<p id="kafka-ug-200506001__p8060118">After creating a topic, you can change its aging time based on service requirements. Changing the aging time does not affect services. The default aging time is 72 hours.</p>
|
|
<p id="kafka-ug-200506001__p79181049102211">You can change the aging time in either of the following ways:</p>
|
|
<ul id="kafka-ug-200506001__ul1346045342213"><li id="kafka-ug-200506001__li12485155616224">By editing the topic on the <strong id="kafka-ug-200506001__b12708121355016">Topics</strong> tab page</li><li id="kafka-ug-200506001__li64604536221">By changing the value of the <strong id="kafka-ug-200506001__b3972835195011">log.retention.hours</strong> parameter on the <strong id="kafka-ug-200506001__b5891124245018">Parameters</strong> tab page. For details, see <a href="kafka-ug-0007.html">Modifying Kafka Parameters</a>.</li></ul>
|
|
<div class="note" id="kafka-ug-200506001__note95679485272"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-200506001__p1256911488274">The <strong id="kafka-ug-200506001__b1131973417516">log.retention.hours</strong> parameter takes effect only for topics that have no aging time configured. If there is aging time configured for a topic, it overrides the <strong id="kafka-ug-200506001__b3639335844">log.retention.hours</strong> parameter. For example, if the aging time of Topic01 is set to 60 hours and <strong id="kafka-ug-200506001__b112221453155112">log.retention.hours</strong> is set to 72 hours, the actual aging time of Topic01 is 60 hours.</p>
|
|
</div></div>
|
|
<div class="section" id="kafka-ug-200506001__section9920562253"><h4 class="sectiontitle">Procedure</h4><ol id="kafka-ug-200506001__ol363518281765"><li id="kafka-ug-200506001__li10427115412419"><span>Log in to the management console.</span></li><li id="kafka-ug-200506001__li14905725134512"><span>Click <span><img id="kafka-ug-200506001__image136229422511" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-200506001__note596412409275"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-200506001__p11964174020277">Select the region where your Kafka instance is located.</p>
|
|
</div></div>
|
|
</p></li><li id="kafka-ug-200506001__li189561034172215"><span>Click <strong id="kafka-ug-200506001__b20509347489575">Service List</strong> and choose <strong id="kafka-ug-200506001__b8264838069575">Application</strong> > <strong id="kafka-ug-200506001__b4143570119575">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-200506001__li26520051765"><span>Click the desired Kafka instance to view the instance details.</span></li><li id="kafka-ug-200506001__li6318234617851"><span>Click the <strong id="kafka-ug-200506001__b8995041171518">Topics</strong> tab.</span></li><li id="kafka-ug-200506001__li1169275344516"><span>Modify the topic aging time using either of the following methods:</span><p><ul id="kafka-ug-200506001__ul1146071715465"><li id="kafka-ug-200506001__li104997486113">Select one or more topics and click <strong id="kafka-ug-200506001__b119732041500">Edit Topic</strong> in the upper left corner.</li><li id="kafka-ug-200506001__li53063508319">In the row containing the desired topic, click <strong id="kafka-ug-200506001__b4440771409">Edit</strong>.</li></ul>
|
|
</p></li><li id="kafka-ug-200506001__li195891923113810"><span>In the <strong id="kafka-ug-200506001__b1217315118615">Edit Topic</strong> dialog box, enter the aging time and click <strong id="kafka-ug-200506001__b10430856966">OK</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-ug-0720001.html">Managing Topics</a></div>
|
|
</div>
|
|
</div>
|
|
|