Files
doc-exports/docs/dms/umn/kafka-ug-0007.html
Chen, Junjie 1588318a68 DMS UMN 20240723 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-08-14 12:31:58 +00:00

339 lines
31 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="kafka-ug-0007"></a><a name="kafka-ug-0007"></a>
<h1 class="topictitle1">Modifying Kafka Instance Configuration Parameters</h1>
<div id="body0000001163476917"><p id="kafka-ug-0007__p135410463517">Your Kafka instances, topics, and consumers come with default configuration parameter settings. You can modify common parameters on the DMS console. For details about parameters that are not listed on the console, see the <a href="https://kafka.apache.org/documentation/#configuration" target="_blank" rel="noopener noreferrer">Kafka official website</a>.</p>
<p id="kafka-ug-0007__p1447162982015">Kafka instances have dynamic and static parameters:</p>
<ul id="kafka-ug-0007__ul511035302118"><li id="kafka-ug-0007__li1211015534213">Dynamic parameters: Modifying dynamic parameters will not restart the instance.</li><li id="kafka-ug-0007__li11462557132112">Static parameters: After static parameters are modified, you must manually restart the instance.</li></ul>
<div class="note" id="kafka-ug-0007__note2045632781813"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="kafka-ug-0007__ul311510451855"><li id="kafka-ug-0007__li41152045453">Configuration parameters of some old instances cannot be modified. Check whether your instance parameters can be modified on the console. If they cannot be modified, contact customer service.</li><li id="kafka-ug-0007__li079314479510">This function is not available for single-node instances.</li></ul>
</div></div>
<div class="section" id="kafka-ug-0007__section238819521351"><h4 class="sectiontitle">Prerequisites</h4><p id="kafka-ug-0007__p69839178620">You can modify configuration parameters of a Kafka instance when the instance is in the <strong id="kafka-ug-0007__b115638269158">Running</strong> state.</p>
</div>
<div class="section" id="kafka-ug-0007__section532133816620"><h4 class="sectiontitle">Procedure</h4><ol id="kafka-ug-0007__ol3688124014105"><li id="kafka-ug-0007__li2186699118249"><span>Log in to the console.</span></li><li id="kafka-ug-0007__li14905725134512"><span>Click <span><img id="kafka-ug-0007__image489113210158" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-0007__note596412409275"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0007__p11964174020277">Select the region where your Kafka instance is located.</p>
</div></div>
</p></li><li id="kafka-ug-0007__li189561034172215"><span>Click <strong id="kafka-ug-0007__b95365052495718">Service List</strong> and choose <strong id="kafka-ug-0007__b138420978495718">Application</strong> &gt; <strong id="kafka-ug-0007__b77890425395718">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-0007__li4482191431412"><span>Click the desired Kafka instance to view the instance details.</span></li><li id="kafka-ug-0007__li74361355165420"><span>On the <strong id="kafka-ug-0007__b61731144191516">Parameters</strong> page, click <strong id="kafka-ug-0007__b12526553181516">Edit</strong> in the row containing the parameter to modify.</span><p><p id="kafka-ug-0007__p10516135615410">Parameters of v1.1.0 instances are described in <a href="#kafka-ug-0007__table1037720402179">Table 1</a> and <a href="#kafka-ug-0007__table131264453537">Table 2</a>. Parameters of v2.3.0/v2.7/3.x instances are described in <a href="#kafka-ug-0007__table24142056192817">Table 3</a> and <a href="#kafka-ug-0007__table913673592919">Table 4</a>.</p>
<div class="tablenoborder"><a name="kafka-ug-0007__table1037720402179"></a><a name="table1037720402179"></a><table cellpadding="4" cellspacing="0" summary="" id="kafka-ug-0007__table1037720402179" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Dynamic parameters (v1.1.0 instances)</caption><thead align="left"><tr id="kafka-ug-0007__row4377144081720"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.2.5.2.2.2.5.1.1"><p id="kafka-ug-0007__p15377154091717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.6.2.5.2.2.2.5.1.2"><p id="kafka-ug-0007__p037718406177">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.2.2.5.1.3"><p id="kafka-ug-0007__p1737764019179">Value Range</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.2.2.5.1.4"><p id="kafka-ug-0007__p337815404178">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="kafka-ug-0007__row11378124091714"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.2.2.5.1.1 "><p id="kafka-ug-0007__p1237814012171">auto.create.groups.enable</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.2.2.5.1.2 "><p id="kafka-ug-0007__p11378114031718">Whether to automatically create consumer groups.</p>
<p id="kafka-ug-0007__p145581422916">This parameter is not displayed on the console for some earlier instances. The function of automatically creating consumer groups is enabled by default and cannot be disabled on the console.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.2.2.5.1.3 "><p id="kafka-ug-0007__p63785402177">true/false</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.2.2.5.1.4 "><p id="kafka-ug-0007__p1437819408174">true</p>
</td>
</tr>
<tr id="kafka-ug-0007__row184281142250"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.2.2.5.1.1 "><p id="kafka-ug-0007__p299215521372">offsets.retention.minutes</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.2.2.5.1.2 "><p id="kafka-ug-0007__p1599220522712">The longest period a consumption position can be retained starts from the time of submission. Positions retained beyond this duration will be deleted. Each time a consumption position is submitted to a topic partition, its retention period resets to 0.</p>
<p id="kafka-ug-0007__p92711120103911">This parameter is displayed as a static one for certain earlier instances.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.2.2.5.1.3 "><p id="kafka-ug-0007__p199210523713">144030240</p>
<p id="kafka-ug-0007__p132266352464">Unit: minute</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.2.2.5.1.4 "><p id="kafka-ug-0007__p199929522071">20160</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="kafka-ug-0007__table131264453537"></a><a name="table131264453537"></a><table cellpadding="4" cellspacing="0" summary="" id="kafka-ug-0007__table131264453537" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Static parameters (v1.1.0 instances)</caption><thead align="left"><tr id="kafka-ug-0007__row1126124595313"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.2.5.2.3.2.5.1.1"><p id="kafka-ug-0007__p16127345155311">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.6.2.5.2.3.2.5.1.2"><p id="kafka-ug-0007__p91274454532">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.3.2.5.1.3"><p id="kafka-ug-0007__p512744595310">Value Range</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.3.2.5.1.4"><p id="kafka-ug-0007__p1127194519538">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="kafka-ug-0007__row378114205417"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p145731854115414">min.insync.replicas</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p7745131518153">If a producer sets the acks parameter to <strong id="kafka-ug-0007__b147221652713">all</strong> (or <strong id="kafka-ug-0007__b172275077">-1</strong>), the <strong id="kafka-ug-0007__b57221759718">min.insync.replicas</strong> parameter specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p18573754105412">13</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p10573185445412">1</p>
</td>
</tr>
<tr id="kafka-ug-0007__row69028382546"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p1357315546546">message.max.bytes</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p10573115416541">Maximum length of a single message.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p175731354145410">010,485,760</p>
<p id="kafka-ug-0007__p93021063470">Unit: byte</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p1157310542541">10,485,760</p>
</td>
</tr>
<tr id="kafka-ug-0007__row162865369542"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p13573135420542">unclean.leader.election.enable</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p145744544549">Indicates whether to allow replicas not in the ISR set to be elected as the leader as a last resort, even though doing so may result in data loss.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p16574754125412"><strong id="kafka-ug-0007__b17821357496">true</strong> or <strong id="kafka-ug-0007__b1680911591194">false</strong></p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p857495415415">false</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1127104510531"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p31271345165318">connections.max.idle.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p17127164505318">Idle connection timeout (in ms). Connections that are idle for the duration specified by this parameter will be closed.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p41271945155312">5000600,000</p>
<p id="kafka-ug-0007__p1858918182475">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p3127164515538">600,000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row12127845115313"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p9128204595310">log.retention.hours</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p612816456530">Maximum duration for storing log files.</p>
<p id="kafka-ug-0007__p224372465918">This parameter takes effect only for topics that have no aging time configured. If there is aging time configured for topics, it overrides this parameter.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p17128124565310">1168</p>
<p id="kafka-ug-0007__p14520728164719">Unit: hour</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p12128164585315">72</p>
</td>
</tr>
<tr id="kafka-ug-0007__row19128145105319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p18128134515532">max.connections.per.ip</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p18128124535312">The maximum number of connections allowed from each IP address. Request for new connections will be rejected once the limit is reached.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p712884515535">10020,000</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p212844595312">1000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row111282450533"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p131281145105310">group.max.session.timeout.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p212804575316">Maximum session timeout for consumers. A longer timeout gives consumers more time to process messages between heartbeats but results in a longer time to detect failures.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p012813458534">60001,800,000</p>
<p id="kafka-ug-0007__p16211145117473">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p31291745185318">1,800,000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row812954515314"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p7129945185318">default.replication.factor</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p16129204519539">The default number of replicas configured for an automatically created topic.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p7129184514534">13</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p31291845195316">3</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1468181171014"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p56810191011">allow.everyone.if.no.acl.found</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p268114181019">When this parameter is set to <strong id="kafka-ug-0007__b17254153120520">true</strong>, all users can access resources without ACL rules.</p>
<p id="kafka-ug-0007__p126781554151011">This parameter is displayed only when is enabled for the instance or ciphertext access is used.</p>
<p id="kafka-ug-0007__p5828134594519">This parameter cannot be modified for certain earlier instances.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p1168118116102">true/false</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p968171151010">true</p>
</td>
</tr>
<tr id="kafka-ug-0007__row21296456532"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p1412910455530">num.partitions</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p4129144585320">The default number of partitions configured for each automatically created topic.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p181292045115312">1200</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p10129104595320">3</p>
</td>
</tr>
<tr id="kafka-ug-0007__row9130245165318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.3.2.5.1.1 "><p id="kafka-ug-0007__p14130104516532">group.min.session.timeout.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.3.2.5.1.2 "><p id="kafka-ug-0007__p6130114535313">Minimum session timeout for consumers. A shorter timeout enables quicker failure detection but results in more frequent consumer heartbeating, which can overwhelm broker resources.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.3 "><p id="kafka-ug-0007__p101301545165320">6000300,000</p>
<p id="kafka-ug-0007__p11967201014812">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.3.2.5.1.4 "><p id="kafka-ug-0007__p413164555314">6000</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="kafka-ug-0007__table24142056192817"></a><a name="table24142056192817"></a><table cellpadding="4" cellspacing="0" summary="" id="kafka-ug-0007__table24142056192817" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Dynamic parameters (2.3.0/2.7/3.x instances)</caption><thead align="left"><tr id="kafka-ug-0007__row1341535622818"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.2.5.2.4.2.5.1.1"><p id="kafka-ug-0007__p341565619286">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.6.2.5.2.4.2.5.1.2"><p id="kafka-ug-0007__p17415756162814">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.4.2.5.1.3"><p id="kafka-ug-0007__p276416413581">Value Range</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.4.2.5.1.4"><p id="kafka-ug-0007__p382211345810">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="kafka-ug-0007__row141575642818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p14415756102814">min.insync.replicas</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p941595613283">If a producer sets the acks parameter to <strong id="kafka-ug-0007__b55394531862">all</strong> (or <strong id="kafka-ug-0007__b224525716613">-1</strong>), the <strong id="kafka-ug-0007__b14410921771">min.insync.replicas</strong> parameter specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p1776410455812">13</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p582221345819">1</p>
</td>
</tr>
<tr id="kafka-ug-0007__row34154565280"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p74151156122812">message.max.bytes</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p20415195618287">Maximum length of a single message.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p876412435815">010,485,760</p>
<p id="kafka-ug-0007__p193692022174813">Unit: byte</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p1822151395813">10,485,760</p>
</td>
</tr>
<tr id="kafka-ug-0007__row179316260113"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p1579419261810">auto.create.groups.enable</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p17794726016">Whether to automatically create consumer groups.</p>
<p id="kafka-ug-0007__p20359351125616">This parameter is not displayed on the console for some earlier instances. The function of automatically creating consumer groups is enabled by default and cannot be disabled on the console.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p13549019211">true/false</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p19354304211">true</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1129655110111"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p1137935132914">max.connections.per.ip</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p68667211715">The maximum number of connections allowed from each IP address. Request for new connections will be rejected once the limit is reached.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p15555173518491">10020,000</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p5951332164916">1000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row13415556192811"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p54151456142813">unclean.leader.election.enable</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p4918454184520">Indicates whether to allow replicas not in the ISR set to be elected as the leader as a last resort, even though doing so may result in data loss.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p0764544587"><strong id="kafka-ug-0007__b93381203104">true</strong> or <strong id="kafka-ug-0007__b173381102108">false</strong></p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p19822131316582">false</p>
</td>
</tr>
<tr id="kafka-ug-0007__row485414575513"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.4.2.5.1.1 "><p id="kafka-ug-0007__p1585417535514">offsets.retention.minutes</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.4.2.5.1.2 "><p id="kafka-ug-0007__p34991837151917">The longest period a consumption position can be retained starts from the time of submission. Positions retained beyond this duration will be deleted. Each time a consumption position is submitted to a topic partition, its retention period resets to 0.</p>
<p id="kafka-ug-0007__p548615064820">This parameter is displayed as a static one for certain earlier instances.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.3 "><p id="kafka-ug-0007__p185413512557">144030240</p>
<p id="kafka-ug-0007__p118771934174810">Unit: minute</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.4.2.5.1.4 "><p id="kafka-ug-0007__p285415565515">20160</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="kafka-ug-0007__table913673592919"></a><a name="table913673592919"></a><table cellpadding="4" cellspacing="0" summary="" id="kafka-ug-0007__table913673592919" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Static parameters (2.3.0/2.7/3.x instances)</caption><thead align="left"><tr id="kafka-ug-0007__row4136835172914"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.2.5.2.5.2.5.1.1"><p id="kafka-ug-0007__p313613354296">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.6.2.5.2.5.2.5.1.2"><p id="kafka-ug-0007__p12136153516290">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.5.2.5.1.3"><p id="kafka-ug-0007__p1855519351490">Value Range</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.5.2.5.2.5.1.4"><p id="kafka-ug-0007__p109553214494">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="kafka-ug-0007__row14136133514294"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p913615357293">connections.max.idle.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p31369352293">Idle connection timeout (in ms). Connections that are idle for the duration specified by this parameter will be closed.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p11555435194910">5000600,000</p>
<p id="kafka-ug-0007__p1723810654916">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p495832134913">600,000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1913613592917"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p15136183514296">log.retention.hours</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p4137183517291">Maximum duration for storing log files.</p>
<p id="kafka-ug-0007__p20326105419208">This parameter takes effect only for topics that have no aging time configured. If there is aging time configured for topics, it overrides this parameter.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p7555735174912">1168</p>
<p id="kafka-ug-0007__p1989011124911">Unit: hour</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p1295932104919">72</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1913714359292"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p201371635102913">group.max.session.timeout.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p151371335152911">Maximum session timeout for consumers. A longer timeout gives consumers more time to process messages between heartbeats but results in a longer time to detect failures.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p45561735154918">60001,800,000</p>
<p id="kafka-ug-0007__p444614232494">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p89513214493">1,800,000</p>
</td>
</tr>
<tr id="kafka-ug-0007__row613793512912"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p11373359291">default.replication.factor</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p14137835112910">The default number of replicas configured for an automatically created topic.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p955613544913">13</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p695193264915">3</p>
</td>
</tr>
<tr id="kafka-ug-0007__row741291319236"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p929016141232">allow.everyone.if.no.acl.found</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p2290161414231">When this parameter is set to <strong id="kafka-ug-0007__b6542112165920">true</strong>, all users can access resources without ACL rules.</p>
<p id="kafka-ug-0007__p42901714122311">This parameter is displayed only when is enabled for the instance or ciphertext access is used.</p>
<p id="kafka-ug-0007__p2831121918497">This parameter of some earlier instances cannot be modified.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p162911514182317">true/false</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p1329111412233">true</p>
</td>
</tr>
<tr id="kafka-ug-0007__row41371235182911"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p14137435142916">num.partitions</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p1313783510291">The default number of partitions configured for each automatically created topic.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p45561635184916">1 ~ 200</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p595193219495">3</p>
</td>
</tr>
<tr id="kafka-ug-0007__row1651619559373"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.5.2.5.2.5.1.1 "><p id="kafka-ug-0007__p5516155518374">group.min.session.timeout.ms</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.6.2.5.2.5.2.5.1.2 "><p id="kafka-ug-0007__p115164552377">Minimum session timeout for consumers. A shorter timeout enables quicker failure detection but results in more frequent consumer heartbeating, which can overwhelm broker resources.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.3 "><p id="kafka-ug-0007__p955663554911">6000300,000</p>
<p id="kafka-ug-0007__p144833210496">Unit: millisecond</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.5.2.5.2.5.1.4 "><p id="kafka-ug-0007__p19633294911">6000</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="kafka-ug-0007__note167921324483"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="kafka-ug-0007__ul660422211119"><li id="kafka-ug-0007__li1660422216117">To modify multiple dynamic or static parameters at a time, click <strong id="kafka-ug-0007__b915715523719">Modify</strong> above the parameter list.</li><li id="kafka-ug-0007__li7619194818116">If you want to restore the default values, click <strong id="kafka-ug-0007__b12923104319014">Restore Default</strong> in the row containing the desired parameter.</li></ul>
</div></div>
</p></li><li id="kafka-ug-0007__li1782532922614"><span>Click <strong id="kafka-ug-0007__b88261119162019">Save</strong>.</span><p><div class="note" id="kafka-ug-0007__note41737925115"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0007__p17178149125117">Modifying dynamic parameters will not restart the instance. <strong id="kafka-ug-0007__b1164371352316">Static parameter modification requires manual restart of the instance.</strong></p>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-ug-180604011.html">Managing Instances</a></div>
</div>
</div>