forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
123 lines
17 KiB
HTML
123 lines
17 KiB
HTML
<a name="ALM-45647"></a><a name="ALM-45647"></a>
|
|
|
|
<h1 class="topictitle1">ALM-45647 Estimated Pending Compaction Size of RocksDB Continuously Exceeds the Threshold</h1>
|
|
<div id="body0000002008221045"><p id="ALM-45647__p12261122253615">This section applies to MRS 3.3.0 or later.</p>
|
|
<div class="section" id="ALM-45647__section663215"><h4 class="sectiontitle"><span id="ALM-45647__text516373020197">Alarm Description</span></h4><p id="ALM-45647__p66405588">The system checks the RocksDB monitoring data of jobs at the user-specified alarm reporting interval (<strong id="ALM-45647__b19682113215242">metrics.reporter.alarm.job.alarm.rocksdb.metrics.duration</strong>, 180s by default). This alarm is generated when the estimated pending compaction size of RocksDB for a job continuously exceeds the threshold. This alarm is cleared when the estimated pending compaction size of RocksDB for the job is less than or equal to the threshold.</p>
|
|
<p id="ALM-45647__p105067981620">The threshold of the estimated pending compaction size is the smaller value of the following two parameters:</p>
|
|
<ul id="ALM-45647__ul1259117177161"><li id="ALM-45647__li1659141761619"><strong id="ALM-45647__b2684124183310">state.backend.rocksdb.soft-pending-compaction-bytes-limit</strong>. The default value is <strong id="ALM-45647__b33481415103312">64GB</strong>.</li><li id="ALM-45647__li259151718161"><strong id="ALM-45647__b12297121710339">state.backend.rocksdb.hard-pending-compaction-bytes-limit</strong>. The default value is <strong id="ALM-45647__b929871718333">256GB</strong>.</li></ul>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section5968939"><h4 class="sectiontitle"><span id="ALM-45647__text20591447192117">Alarm Attributes</span></h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ALM-45647__table10143581" frame="border" border="1" rules="all"><thead align="left"><tr id="ALM-45647__row61411666"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.1.4.1.1"><p id="ALM-45647__p17386810"><span id="ALM-45647__text1864783145211">Alarm ID</span></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.1.4.1.2"><p id="ALM-45647__p66154394"><span id="ALM-45647__text297913110521">Alarm Severity</span></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.1.4.1.3"><p id="ALM-45647__p49230886"><span id="ALM-45647__text0890175712305">Auto Cleared</span></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ALM-45647__row49774232"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.4.1.1 "><p id="ALM-45647__p5180964">45647</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.4.1.2 "><p id="ALM-45647__p17004965">Minor</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.4.1.3 "><p id="ALM-45647__p35224963">Yes</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section53720453"><h4 class="sectiontitle"><span id="ALM-45647__text18171442142214">Alarm Parameters</span></h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ALM-45647__table34649765" frame="border" border="1" rules="all"><thead align="left"><tr id="ALM-45647__row18974100"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.1.3.1.1"><p id="ALM-45647__p42699947"><span id="ALM-45647__text6203173410617">Parameter</span></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.1.3.1.2"><p id="ALM-45647__p36143663"><span id="ALM-45647__text10819164319610">Description</span></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ALM-45647__row16272251424"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.1 "><p id="ALM-45647__p9447153994219">Source</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.2 "><p id="ALM-45647__p144723994214">Specifies the cluster for which the alarm is generated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ALM-45647__row38292076"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.1 "><p id="ALM-45647__p164471639194216">ServiceName</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.2 "><p id="ALM-45647__p44471639174211">Specifies the service for which the alarm is generated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ALM-45647__row73049270124"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.1 "><p id="ALM-45647__p24471539104219">ApplicationName</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.2 "><p id="ALM-45647__p1944763954213">Specifies the name of the application for which the alarm is generated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ALM-45647__row9875225"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.1 "><p id="ALM-45647__p1244715394427">RoleName</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.2 "><p id="ALM-45647__p44471439144216">Specifies the role for which the alarm is generated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ALM-45647__row13243689"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.1 "><p id="ALM-45647__p1244716397426">JobName</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.1.3.1.2 "><p id="ALM-45647__p244713917425">Specifies the job for which the alarm is generated.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section13722030"><h4 class="sectiontitle"><span id="ALM-45647__text98201443182317">Impact on the System</span></h4><p id="ALM-45647__p25040094">This alarm has no adverse impact on the system.</p>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section56389407"><h4 class="sectiontitle"><span id="ALM-45647__text11871546172411">Possible Causes</span></h4><p id="ALM-45647__p586761744614">The estimated compaction data size of RocksDB is too large.</p>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section196981816783"><h4 class="sectiontitle"><span id="ALM-45647__text79051154102518">Handling Procedure</span></h4><p id="ALM-45647__p13057358914"><strong id="ALM-45647__b986382410343">Check TaskManager logs for the estimated compaction data size and collect logs.</strong></p>
|
|
<ol id="ALM-45647__ol72082246508"><li id="ALM-45647__li1020812242501"><span>Log in to FusionInsight Manager as a user who has the FlinkServer management permission.</span></li><li id="ALM-45647__li11208132410508"><span>Choose <strong id="ALM-45647__b1035551453515">O&M</strong> > <strong id="ALM-45647__b33557145350">Alarm</strong> > <strong id="ALM-45647__b2356141412355">Alarms</strong> > <strong id="ALM-45647__b19357614183515">ALM-45647 Estimated Pending Compaction Size of RocksDB Continuously Exceeds the Threshold</strong>, view <strong id="ALM-45647__b235719141351">Location</strong>, and obtain the name of the task for which the alarm is generated.</span></li><li id="ALM-45647__li2208524185013"><span>Choose <strong id="ALM-45647__b1748533911559">Cluster</strong> > <strong id="ALM-45647__b7485143905510">Services</strong> > <strong id="ALM-45647__b1948511396559">Yarn</strong> and click the link next to <strong id="ALM-45647__b1648516392555">ResourceManager WebUI</strong> to go to the native Yarn page.</span></li></ol><ol start="4" id="ALM-45647__ol52081124175014"><li id="ALM-45647__li10207524155012"><span>Locate the abnormal task based on its name displayed in <strong id="ALM-45647__b1926712387359">Location</strong>, search for and record the application ID of the job, and check whether the job logs are available on the Yarn page.</span><p><div class="fignone" id="ALM-45647__fig52072244500"><span class="figcap"><b>Figure 1 </b>Application ID of a job</span><br><span><img id="ALM-45647__image7419459135514" src="en-us_image_0000001971808574.png"></span><br><span><img id="ALM-45647__image1120672411504" src="en-us_image_0000002008248581.png"></span></div>
|
|
<ul id="ALM-45647__ul385113273715"><li id="ALM-45647__li48533215371">If yes, go to <a href="#ALM-45647__li192082249500">5</a>.</li><li id="ALM-45647__li1085203213372">If no, go to <a href="#ALM-45647__li15924173318501">6</a>.</li></ul>
|
|
</p></li><li id="ALM-45647__li192082249500"><a name="ALM-45647__li192082249500"></a><a name="li192082249500"></a><span>Click the application ID of the failed job to go to the job page.</span><p><ol type="a" id="ALM-45647__ol2208624155017"><li id="ALM-45647__li18207192475010">Click <strong id="ALM-45647__b16701115712358">Logs</strong> in the <strong id="ALM-45647__b3701155783518">Logs</strong> column to view JobManager logs.<div class="fignone" id="ALM-45647__fig620782485019"><span class="figcap"><b>Figure 2 </b>Clicking Logs</span><br><span><img id="ALM-45647__image9207142417503" src="en-us_image_0000001971648822.png"></span></div>
|
|
</li><li id="ALM-45647__li5208102419500">Click the ID in the <strong id="ALM-45647__b203419318369">Attempt ID</strong> column and click <strong id="ALM-45647__b1634219373611">Logs</strong> in the <strong id="ALM-45647__b1834253183610">Logs</strong> column to view and save TaskManager logs. Then go to <a href="#ALM-45647__li1157118941310">7</a>.<div class="fignone" id="ALM-45647__fig92071724195013"><span class="figcap"><b>Figure 3 </b>Clicking the ID in the Attempt ID column</span><br><span><img id="ALM-45647__image17207142475012" src="en-us_image_0000002008129137.png"></span></div>
|
|
<div class="fignone" id="ALM-45647__fig1720811242508"><span class="figcap"><b>Figure 4 </b>Clicking Logs</span><br><span><img id="ALM-45647__image1820882414506" src="en-us_image_0000001971808582.png"></span></div>
|
|
<div class="note" id="ALM-45647__note1320882412506"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ALM-45647__p132081324105018">You can also log in to Manager as a user who has the management permission for the current Flink job. Choose <strong id="ALM-45647__b87042177367">Cluster</strong> > <strong id="ALM-45647__b1570451717368">Services</strong> > <strong id="ALM-45647__b070510176364">Flink</strong>, and click the link next to <strong id="ALM-45647__b1470510179368">Flink WebUI</strong>. On the displayed Flink web UI, click <strong id="ALM-45647__b14706171763617">Job Management</strong>, click <strong id="ALM-45647__b19706141717366">More</strong> in the <strong id="ALM-45647__b670611753612">Operation</strong> column, and select <strong id="ALM-45647__b5707101720363">Job Monitoring</strong> to view TaskManager logs.</p>
|
|
</div></div>
|
|
</li></ol>
|
|
</p></li></ol>
|
|
<p id="ALM-45647__p197819554109"><strong id="ALM-45647__b18306132119366">If logs are unavailable on the Yarn page, download logs from HDFS.</strong></p>
|
|
<ol start="6" id="ALM-45647__ol69241133165017"><li id="ALM-45647__li15924173318501"><a name="ALM-45647__li15924173318501"></a><a name="li15924173318501"></a><span>On Manager, choose <strong id="ALM-45647__b12341112319366">Cluster</strong> > <strong id="ALM-45647__b034172303617">Services</strong> > <strong id="ALM-45647__b4342142383616">HDFS</strong>, click the link next to <strong id="ALM-45647__b14342122353613">NameNode WebUI</strong> to go to the HDFS page, choose <strong id="ALM-45647__b33431123103612">Utilities</strong> > <strong id="ALM-45647__b6343323153614">Browse the file system</strong>, and download logs in the <strong id="ALM-45647__b1934452373610">/tmp/logs/</strong><em id="ALM-45647__i4344823173612">Username</em><strong id="ALM-45647__b12344162319365">/bucket-logs-tfile/</strong><em id="ALM-45647__i143451823133615">Last four digits of the task application ID/Application ID of the task</em> directory.</span></li></ol>
|
|
<p id="ALM-45647__p1737814291119"><strong id="ALM-45647__b1541322214161">Check whether the estimated compaction data size of RocksDB is too large.</strong></p>
|
|
<ol start="7" id="ALM-45647__ol673654225011"><li id="ALM-45647__li1157118941310"><a name="ALM-45647__li1157118941310"></a><a name="li1157118941310"></a><span>Check whether the value of <strong id="ALM-45647__b6295151654616">rocksdb.estimate-pending-compaction-bytes</strong> (unit: byte) in TaskManager monitoring logs (keyword <strong id="ALM-45647__b163871631164611">RocksDBMetricPrint</strong>) is greater than or equal to the <strong id="ALM-45647__b082323418423">soft/hard-pending-compaction</strong> size (values of <strong id="ALM-45647__b26702093472">state.backend.rocksdb.soft-pending-compaction-bytes-limit</strong> and <strong id="ALM-45647__b63111213134716">state.backend.rocksdb.hard-pending-compaction-bytes-limit</strong>).</span><p><ul id="ALM-45647__ul173694225012"><li id="ALM-45647__li9736442105010">If yes, adjust the values of the following custom parameters on the job development page of the Flink web UI, save the settings, and go to <a href="#ALM-45647__li4736164255016">8</a>.
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ALM-45647__table82891746711" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Custom parameters</caption><thead align="left"><tr id="ALM-45647__row1529018469119"><th align="left" class="cellrowborder" valign="top" width="35.56355635563557%" id="mcps1.3.7.8.1.2.1.1.2.2.4.1.1"><p id="ALM-45647__p14214250174913">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.991399139913991%" id="mcps1.3.7.8.1.2.1.1.2.2.4.1.2"><p id="ALM-45647__p82149501496">Default Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.44504450445044%" id="mcps1.3.7.8.1.2.1.1.2.2.4.1.3"><p id="ALM-45647__p62153502499">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ALM-45647__row1829011468120"><td class="cellrowborder" valign="top" width="35.56355635563557%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.1 "><p id="ALM-45647__p20290104610119">state.backend.rocksdb.soft-pending-compaction-bytes-limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.991399139913991%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.2 "><p id="ALM-45647__p14291124613114">64GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.44504450445044%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.3 "><ul id="ALM-45647__ul0355555416"><li id="ALM-45647__li1235125517413">When the pending compaction size exceeds the threshold, the write traffic is limited.</li><li id="ALM-45647__li17816161816212"><strong id="ALM-45647__b1256381824810">64GB</strong> to <strong id="ALM-45647__b12420172013481">512GB</strong> are recommended.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="ALM-45647__row1629114612115"><td class="cellrowborder" valign="top" width="35.56355635563557%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.1 "><p id="ALM-45647__p172919461114">state.backend.rocksdb.hard-pending-compaction-bytes-limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.991399139913991%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.2 "><p id="ALM-45647__p10291184616116">256GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.44504450445044%" headers="mcps1.3.7.8.1.2.1.1.2.2.4.1.3 "><ul id="ALM-45647__ul866995711417"><li id="ALM-45647__li146691257841">When the pending compaction size exceeds the threshold, write operations are stopped.</li><li id="ALM-45647__li12591102217213"><strong id="ALM-45647__b753885010482">64GB</strong> to <strong id="ALM-45647__b105391050144810">512GB</strong> are recommended.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="ALM-45647__li1673694219506">If no, go to <a href="#ALM-45647__li573684212503">9</a>.</li></ul>
|
|
</p></li><li id="ALM-45647__li4736164255016"><a name="ALM-45647__li4736164255016"></a><a name="li4736164255016"></a><span>Restart the job and check whether the alarm is cleared.</span><p><ul id="ALM-45647__ul773611421507"><li id="ALM-45647__li6736184215505">If yes, no further action is required.</li><li id="ALM-45647__li17736204295010">If no, go to <a href="#ALM-45647__li573684212503">9</a>.</li></ul>
|
|
</p></li><li id="ALM-45647__li573684212503"><a name="ALM-45647__li573684212503"></a><a name="li573684212503"></a><span>Contact <span id="ALM-45647__text46382022144914">O&M personnel</span> and send the collected logs.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section169311343318"><h4 class="sectiontitle"><span id="ALM-45647__text195945622616">Alarm Clearance</span></h4><p id="ALM-45647__p754913417333">This alarm is automatically cleared after the fault is rectified.</p>
|
|
</div>
|
|
<div class="section" id="ALM-45647__section4139237"><h4 class="sectiontitle"><span id="ALM-45647__text143698488285">Related Information</span></h4><p id="ALM-45647__p33559471"><span id="ALM-45647__text19275105817121">None.</span></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1298.html">Alarm Reference (Applicable to MRS 3.x)</a></div>
|
|
</div>
|
|
</div>
|
|
|