Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

35 lines
3.4 KiB
HTML

<a name="mrs_01_2090"></a><a name="mrs_01_2090"></a>
<h1 class="topictitle1">How Do I Limit the Size of Application Diagnostic Messages Stored in the ZKstore?</h1>
<div id="body1596167575162"><div class="section" id="mrs_01_2090__sde9c783050fc4212b7e6a3fb3a97bfe1"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2090__aa6e2d5fb23d346da859e7a4c6881c614">How do I limit the size of application diagnostic messages stored in the ZKstore?</p>
</div>
<div class="section" id="mrs_01_2090__s8f7964109be94e5bb112205456ccc79d"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2090__a5248ffdb4be44946914cdb5476747a3d">In some cases, it has been observed that diagnostic messages may grow infinitely. Because diagnostic messages are stored in the ZKstore, it is not recommended that you allow diagnostic messages to grow indefinitely. Therefore, a property parameter is needed to set the maximum size of the diagnostic message.</p>
<p id="mrs_01_2090__aefec61fc3ce447d28511b451608bd626">If you need to set <strong id="mrs_01_2090__b839412516484">yarn.app.attempt.diagnostics.limit.kc</strong>, go to the <strong id="mrs_01_2090__b1332181118489">All Configurations</strong> page by referring to <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a> and search for the following parameters in the search box:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2090__t99878883bc3b4183b1a4e48f06d18231" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_2090__r15811405120f4254800e9aee3d94a10c"><th align="left" class="cellrowborder" valign="top" width="24.8%" id="mcps1.3.2.4.2.4.1.1"><p id="mrs_01_2090__a2bf35bf97d3842c385af657a6e50f100">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.980000000000004%" id="mcps1.3.2.4.2.4.1.2"><p id="mrs_01_2090__a0722ed99cd0542dbbbf60aec8fd092a7">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.22%" id="mcps1.3.2.4.2.4.1.3"><p id="mrs_01_2090__a3ac4ba8913ad4cfe86f293705ad6c460">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_2090__r40102cf51aee49d881588f055acc2dd7"><td class="cellrowborder" valign="top" width="24.8%" headers="mcps1.3.2.4.2.4.1.1 "><p id="mrs_01_2090__a7fc86381d52a474a9b709e886230bde8">yarn.app.attempt.diagnostics.limit.kc</p>
</td>
<td class="cellrowborder" valign="top" width="62.980000000000004%" headers="mcps1.3.2.4.2.4.1.2 "><p id="mrs_01_2090__a375c0a41e84f41ffb46218efdb9fed94">Data size of the diagnosis message for each application connection, in kilobytes (number of characters x 1,024). When ZooKeeper is used to store the behavior status of applications, the size of diagnosis messages needs to be limited to prevent Yarn from overloading ZooKeeper. If <span class="parmname" id="mrs_01_2090__p8a7ec9c1555847108603aed8eead4fb0"><b>yarn.resourcemanager.state-store.max-completed-applications</b></span> is set to a large value, you need to decrease the value of this property to limit the total size of stored data.</p>
</td>
<td class="cellrowborder" valign="top" width="12.22%" headers="mcps1.3.2.4.2.4.1.3 "><p id="mrs_01_2090__a9abee71cbea4443e837b2f3f8e221c13">64</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2077.html">Common Issues About Yarn</a></div>
</div>
</div>