forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
86 lines
9.3 KiB
HTML
86 lines
9.3 KiB
HTML
<a name="css_01_0202"></a><a name="css_01_0202"></a>
|
|
|
|
<h1 class="topictitle1">Monitoring OBS Operations</h1>
|
|
<div id="body0000001520039673"><p id="css_01_0202__en-us_topic_0000001520039673_p11877144265613">To clearly display the operations of the storage and compute decoupling plugin in OBS, the real-time OBS rate metric is added to CSS and recorded in the system index.</p>
|
|
<div class="section" id="css_01_0202__en-us_topic_0000001520039673_section19890112053713"><h4 class="sectiontitle">Prerequisite</h4><p id="css_01_0202__en-us_topic_0000001520039673_p75391824133712">This feature is available at Elasticsearch of versions 7.6.2 and 7.10.2 and Opensearch clusters created after March 2023.</p>
|
|
</div>
|
|
<div class="section" id="css_01_0202__en-us_topic_0000001520039673_section1756814112570"><h4 class="sectiontitle">Description</h4><ul id="css_01_0202__en-us_topic_0000001520039673_ul81611518135710"><li id="css_01_0202__en-us_topic_0000001520039673_li11041523195719">The <a href="#css_01_0202__en-us_topic_0000001520039673_section1130685012812">GET _frozen_stats/obs_rate</a> API is used to query the real-time rate of OBS operations.</li><li id="css_01_0202__en-us_topic_0000001520039673_li57573222599">The system index <a href="#css_01_0202__en-us_topic_0000001520039673_section1319142217244">.freeze_obs_rate-YYYY.mm.dd</a> is added to store the real-time OBS operation rate and OBS operation data, helping you monitor the OBS operations.</li><li id="css_01_0202__en-us_topic_0000001520039673_li916121820572">The <a href="#css_01_0202__en-us_topic_0000001520039673_section37841313194117">low_cost.obs_rate_index.evict_time</a> parameter is added to control the storage duration of the <span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname187591255205916"><b>.freeze_obs_rate-YYYY.mm.dd</b></span> index</li></ul>
|
|
</div>
|
|
<div class="section" id="css_01_0202__en-us_topic_0000001520039673_section1130685012812"><a name="css_01_0202__en-us_topic_0000001520039673_section1130685012812"></a><a name="en-us_topic_0000001520039673_section1130685012812"></a><h4 class="sectiontitle"><b><span class="cmdname" id="css_01_0202__en-us_topic_0000001520039673_cmdname166551351582">GET _frozen_stats/obs_rate</span></b> API</h4><ul id="css_01_0202__en-us_topic_0000001520039673_ul111291635191113"><li id="css_01_0202__en-us_topic_0000001520039673_li117661414123">Calculation method: The average OBS operation rate in the last 5 seconds is calculated every 5 seconds.</li><li id="css_01_0202__en-us_topic_0000001520039673_li8129123511112">Example request:<pre class="screen" id="css_01_0202__en-us_topic_0000001520039673_screen390353121220">GET _frozen_stats/obs_rate
|
|
GET _frozen_stats/obs_rate/{nodeId}</pre>
|
|
<p id="css_01_0202__en-us_topic_0000001520039673_p104691819191519"><span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname19251137201618"><b>{nodeId}</b></span> indicates the ID of the node whose OBS operation rate you want to query.</p>
|
|
</li><li id="css_01_0202__en-us_topic_0000001520039673_li082925013110">Example response:<pre class="screen" id="css_01_0202__en-us_topic_0000001520039673_screen9421915171813">{
|
|
"_nodes" : {
|
|
"total" : 1,
|
|
"successful" : 1,
|
|
"failed" : 0
|
|
},
|
|
"cluster_name" : "elasticsearch",
|
|
"nodes" : {
|
|
"dflDvcSwTJ-fkiIlT2zE3A" : {
|
|
"name" : "node-1",
|
|
"transport_address" : "127.0.0.1:9300",
|
|
"host" : "127.0.0.1",
|
|
"ip" : "127.0.0.1",
|
|
"update_time" : 1671777600482, // Time when the current statistics are updated.
|
|
"obs_rate" : {
|
|
"list_op_rate" : 0.0, // Rate of OBS <strong id="css_01_0202__en-us_topic_0000001520039673_b12701163132913">list</strong> operations. Unit: times/s.
|
|
"get_meta_op_rate" : 0.0, // Rate of OBS <strong id="css_01_0202__en-us_topic_0000001520039673_b13919242202811">get meta</strong> operations. Unit: times/s.
|
|
"get_obj_op_rate" : 0.0, // Rate of OBS <strong id="css_01_0202__en-us_topic_0000001520039673_b18994922915">get</strong> operations. Unit: times/s.
|
|
"put_op_rate" : 0.0, // Rate of OBS <strong id="css_01_0202__en-us_topic_0000001520039673_b1633325672912">put</strong> operations. Unit: times/s.
|
|
"obs_total_op_rate" : 0.0, // Rate of all OBS operations. The unit is times/s.
|
|
"obs_upload_rate" : "0.0 MB/s", // Data upload rate of OBS, in MB/s.
|
|
"obs_download_rate" : "0.0 MB/s" // Data download rate of OBS, in MB/s.
|
|
}
|
|
}
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="css_01_0202__en-us_topic_0000001520039673_section1319142217244"><a name="css_01_0202__en-us_topic_0000001520039673_section1319142217244"></a><a name="en-us_topic_0000001520039673_section1319142217244"></a><h4 class="sectiontitle">System Index</h4><ul id="css_01_0202__en-us_topic_0000001520039673_ul9313858173912"><li id="css_01_0202__en-us_topic_0000001520039673_li1333821514405">System index name: <span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname163381815164020"><b>.freeze_obs_rate-YYYY.mm.dd</b></span>.</li><li id="css_01_0202__en-us_topic_0000001520039673_li1747281854016">Example: <span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname1747251864019"><b>.freeze_obs_rate-2023.01.23</b></span><div class="note" id="css_01_0202__en-us_topic_0000001520039673_note12358631154015"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_01_0202__en-us_topic_0000001520039673_p9280142311405">The default retention period of indexes is 30 days.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="css_01_0202__en-us_topic_0000001520039673_section37841313194117"><a name="css_01_0202__en-us_topic_0000001520039673_section37841313194117"></a><a name="en-us_topic_0000001520039673_section37841313194117"></a><h4 class="sectiontitle">Configuration Item</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0202__en-us_topic_0000001520039673_table89366542411" frame="border" border="1" rules="all"><tbody><tr id="css_01_0202__en-us_topic_0000001520039673_row1497845416413"><td class="cellrowborder" valign="top" width="20.34%"><p id="css_01_0202__en-us_topic_0000001520039673_p13978135434117"><strong id="css_01_0202__en-us_topic_0000001520039673_b7559526177">Configuration Item</strong></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.79%"><p id="css_01_0202__en-us_topic_0000001520039673_p1697813541411"><strong id="css_01_0202__en-us_topic_0000001520039673_b29321127173">Type</strong></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="6.79%"><p id="css_01_0202__en-us_topic_0000001520039673_p89781354144113"><strong id="css_01_0202__en-us_topic_0000001520039673_b18758430571">Scope</strong></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.41%"><p id="css_01_0202__en-us_topic_0000001520039673_p79787548411"><strong id="css_01_0202__en-us_topic_0000001520039673_b76931321172">Can Be Dynamically Modified</strong></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.669999999999995%"><p id="css_01_0202__en-us_topic_0000001520039673_p597816549418"><strong id="css_01_0202__en-us_topic_0000001520039673_b4180356717">Description</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0202__en-us_topic_0000001520039673_row13978354154113"><td class="cellrowborder" valign="top" width="20.34%"><p id="css_01_0202__en-us_topic_0000001520039673_p1297985411411">low_cost.obs_rate_index.evict_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="7.79%"><p id="css_01_0202__en-us_topic_0000001520039673_p18979754144117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="6.79%"><p id="css_01_0202__en-us_topic_0000001520039673_p8979135464120">node</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.41%"><p id="css_01_0202__en-us_topic_0000001520039673_p10979135454115">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.669999999999995%"><p id="css_01_0202__en-us_topic_0000001520039673_p69792544412">The retention period of the <span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname437713506496"><b>.freeze_obs_rate-YYYY.mm.dd</b></span> index.</p>
|
|
<ul id="css_01_0202__en-us_topic_0000001520039673_ul8141351174519"><li id="css_01_0202__en-us_topic_0000001520039673_li3141205104512">Value range: 1d to 365d</li><li id="css_01_0202__en-us_topic_0000001520039673_li1974671514618">Default value: <strong id="css_01_0202__en-us_topic_0000001520039673_b13901373620">30d</strong></li><li id="css_01_0202__en-us_topic_0000001520039673_li961615238468">Unit: day</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="css_01_0202__en-us_topic_0000001520039673_p155404463428">For example, run the following command to modify the retention period of the <span class="parmname" id="css_01_0202__en-us_topic_0000001520039673_parmname466310225508"><b>.freeze_obs_rate-YYYY.mm.dd</b></span> index:</p>
|
|
<pre class="screen" id="css_01_0202__en-us_topic_0000001520039673_screen1890695511421">PUT _cluster/settings
|
|
{
|
|
"persistent": {
|
|
"low_cost.obs_rate_index.evict_time": "7d"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0112.html">Storage-Compute Decoupling</a></div>
|
|
</div>
|
|
</div>
|
|
|