forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
104 lines
16 KiB
HTML
104 lines
16 KiB
HTML
<a name="EN-US_TOPIC_0000001952008101"></a><a name="EN-US_TOPIC_0000001952008101"></a>
|
|
|
|
<h1 class="topictitle1">Workload Snapshots</h1>
|
|
<div id="body0000001192419952"><p id="EN-US_TOPIC_0000001952008101__p8060118">You can check the basic information about the cluster workload snapshots, manually create a snapshot, and configure snapshot parameters.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001952008101__section955010325576"><h4 class="sectiontitle">Checking Workload Snapshots</h4><ol id="EN-US_TOPIC_0000001952008101__en-us_topic_0000001076801429_o4d27c72c9c5b483283c532fd703af879"><li id="EN-US_TOPIC_0000001952008101__en-us_topic_0000001076801429_l3bf4b8bc45d343b6aec0b48be7dfc1aa"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001952008101__en-us_topic_0000001076801429_li11952509114244"><span>On the <strong id="EN-US_TOPIC_0000001952008101__b98581939174718">Cluster</strong> > <strong id="EN-US_TOPIC_0000001952008101__b7858123912479">Dedicated Cluster<span id="EN-US_TOPIC_0000001952008101__text1135014545212"></span></strong> page, locate the cluster for which you want to perform workload analysis.</span></li><li id="EN-US_TOPIC_0000001952008101__en-us_topic_0000001076801429_li167917216818"><span>In the <strong id="EN-US_TOPIC_0000001952008101__b19200558294">Operation</strong> column of the cluster, choose <strong id="EN-US_TOPIC_0000001952008101__b102013554297">Monitoring Panel</strong>. The database monitoring page is displayed.</span></li><li id="EN-US_TOPIC_0000001952008101__li1782593519111"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001952008101__b1684645421319">Workload Analysis</strong> > <strong id="EN-US_TOPIC_0000001952008101__b1684713543135">Workload Snapshot</strong>. Workload snapshots will be displayed.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001952008101__section18838586572"><h4 class="sectiontitle">Creating a Workload Snapshot</h4><ol id="EN-US_TOPIC_0000001952008101__ol1777415210589"><li id="EN-US_TOPIC_0000001952008101__li577420521586"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001952008101__li10774252115810"><span>On the <strong id="EN-US_TOPIC_0000001952008101__b651312487474">Cluster</strong> > <strong id="EN-US_TOPIC_0000001952008101__b751484819478">Dedicated Cluster<span id="EN-US_TOPIC_0000001952008101__text4514648164714"></span></strong> page, locate the cluster for which you want to perform workload analysis.</span></li><li id="EN-US_TOPIC_0000001952008101__li87741520589"><span>In the <strong id="EN-US_TOPIC_0000001952008101__b8487172293115">Operation</strong> column of the cluster, choose <strong id="EN-US_TOPIC_0000001952008101__b1548842283110">Monitoring Panel</strong>. The database monitoring page is displayed.</span></li><li id="EN-US_TOPIC_0000001952008101__li187747528586"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001952008101__b717305914139">Workload Analysis</strong> > <strong id="EN-US_TOPIC_0000001952008101__b6174159141313">Workload Snapshot</strong>. Workload snapshots will be displayed.</span></li><li id="EN-US_TOPIC_0000001952008101__li07741552175815"><span>Click <strong id="EN-US_TOPIC_0000001952008101__b635212395326">Create Snapshot</strong>. Enter a snapshot name and click <strong id="EN-US_TOPIC_0000001952008101__b10175185315326">OK</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001952008101__note542611504254"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001952008101__p849418215268">Before creating a workload snapshot, ensure that the performance view snapshot parameter is enabled. For details, see <a href="#EN-US_TOPIC_0000001952008101__section145915295112">Configuring Workload Snapshot Parameters</a>.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001952008101__section145915295112"><a name="EN-US_TOPIC_0000001952008101__section145915295112"></a><a name="section145915295112"></a><h4 class="sectiontitle">Configuring Workload Snapshot Parameters</h4><ol id="EN-US_TOPIC_0000001952008101__ol247114193214"><li id="EN-US_TOPIC_0000001952008101__li124713192216"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001952008101__li747141912213"><span>On the <strong id="EN-US_TOPIC_0000001952008101__b191112052134717">Clusters</strong> > <strong id="EN-US_TOPIC_0000001952008101__b611145274718">Dedicated Clusters<span id="EN-US_TOPIC_0000001952008101__text21521016336"></span></strong> page, locate the cluster for which you want to perform workload analysis.</span></li><li id="EN-US_TOPIC_0000001952008101__li1347151919210"><span>In the <strong id="EN-US_TOPIC_0000001952008101__b105371013347">Operation</strong> column of the cluster, choose <strong id="EN-US_TOPIC_0000001952008101__b153770113411">Monitoring Panel</strong>. The database monitoring page is displayed.</span></li><li id="EN-US_TOPIC_0000001952008101__li647141920217"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001952008101__b11656794148">Workload Analysis</strong> > <strong id="EN-US_TOPIC_0000001952008101__b1065717911140">Workload Snapshot</strong>. Workload snapshots will be displayed.</span></li><li id="EN-US_TOPIC_0000001952008101__li047221912218"><span>Click <strong id="EN-US_TOPIC_0000001952008101__b17278192919346">Configure Snapshot</strong> in the upper right corner. In the dialog box that is displayed, check or modify GUC parameters. For details, see <a href="#EN-US_TOPIC_0000001952008101__table12934417177">Table 1</a>.</span><p><p id="EN-US_TOPIC_0000001952008101__p197381037184910"></p>
|
|
<p id="EN-US_TOPIC_0000001952008101__p930241618487"></p>
|
|
</p></li></ol>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001952008101__table12934417177"></a><a name="table12934417177"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001952008101__table12934417177" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Workload snapshot parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001952008101__row210134491716"><th align="left" class="cellrowborder" valign="top" width="31.02310231023102%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001952008101__p131024415176">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.332033203320332%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001952008101__p151084413172">Default Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.64486448644865%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001952008101__p8101244181714">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001952008101__row0101244151717"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p1710124417175">Performance view snapshot (<strong id="EN-US_TOPIC_0000001952008101__b103421014173519">enable_wdr_snapshot</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p21004414179">off</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p410344191711">Whether to enable the performance view snapshot function. If this function is enabled, GaussDB(DWS) will periodically create snapshots for certain system performance views and save them to disk. You can also manually create snapshots.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row12101144161717"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p61094461713">Resource monitoring (<strong id="EN-US_TOPIC_0000001952008101__b7404103515356">enable_resource_track</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p11024431712">on</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p610544161711">Whether to enable the resource monitoring function. Resource statistics parameters are valid only if this parameter is enabled.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row0831446149"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p1183545144">Logical memory management module (<strong id="EN-US_TOPIC_0000001952008101__b2638328163614">enable_memory_limit</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p7834491412">on</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p12834419141">Whether to enable the logical memory management module.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row16107445175"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p6109441179">Wait event statistics (<strong id="EN-US_TOPIC_0000001952008101__b21411058173610">enable_track_wait_event</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p611154415174">off</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p113663835813">Whether to collect statistics on wait events, including the number of occurrences, number of failures, duration, maximum waiting time, minimum waiting time, and average waiting time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row191194431714"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p141184418175">I/O call time series statistics (<strong id="EN-US_TOPIC_0000001952008101__b113261101379">track_io_timing</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p1611244111720">off</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p19111844151716">Whether to collect time series statistics on database I/O calls. If this function is enabled, the collector will periodically query the OS time, which may cause heavy overhead on certain platforms.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row1811154431711"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p01114431716">SQL count (<strong id="EN-US_TOPIC_0000001952008101__b18333626123718">track_sql_count</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p1911944191716">The default value is <strong id="EN-US_TOPIC_0000001952008101__b17949172923712">off</strong> for versions earlier than 8.1.3 and <strong id="EN-US_TOPIC_0000001952008101__b19645734143716">on</strong> for 8.1.3 and later versions.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p81134413173">Whether to collect statistics on the number of the <strong id="EN-US_TOPIC_0000001952008101__b1740393714374">SELECT</strong>, <strong id="EN-US_TOPIC_0000001952008101__b1340412378372">INSERT</strong>, <strong id="EN-US_TOPIC_0000001952008101__b134041937193715">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001952008101__b124056378379">DELETE</strong>, and <strong id="EN-US_TOPIC_0000001952008101__b540593733715">MERGE INTO</strong> statements that are being executed in each session, the response time of the <strong id="EN-US_TOPIC_0000001952008101__b1640693703714">SELECT</strong>, <strong id="EN-US_TOPIC_0000001952008101__b104061137103714">INSERT</strong>, <strong id="EN-US_TOPIC_0000001952008101__b134079376376">UPDATE</strong>, and <strong id="EN-US_TOPIC_0000001952008101__b840713793720">DELETE</strong> statements, and the number of DDL, DML, and DCL statements. This parameter takes effect only if <strong id="EN-US_TOPIC_0000001952008101__b1418912584376">track_activities</strong> is set to <strong id="EN-US_TOPIC_0000001952008101__b1839513591375">on</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row1611204416174"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p911244121714">Session command statistics (<strong id="EN-US_TOPIC_0000001952008101__b89641058386">track_activities</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p811154401717">on</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p12111444174">Whether to collect statistics on the commands that are being executed in each session.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row81114447174"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p141194461716">Unique SQL statistics (<strong id="EN-US_TOPIC_0000001952008101__b1893151933819">instr_unique_sql_count</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p211154418171">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p5111445170">Whether to collect unique SQL statements and how many statements can be collected.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row1911144416171"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p912194411710">Snapshot creation interval (<strong id="EN-US_TOPIC_0000001952008101__b19341183120388">wdr_snapshot_interval</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p21224461716">60</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p42237209112">Interval for automatically creating performance view snapshots. It must be longer than the time needed to create a snapshot. The unit is minute.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001952008101__row161254491717"><td class="cellrowborder" valign="top" width="31.02310231023102%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001952008101__p712134416172">Maximum snapshot retention period (<strong id="EN-US_TOPIC_0000001952008101__b135645619399">wdr_snapshot_retention_days</strong>)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.332033203320332%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001952008101__p18121644141713">8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.64486448644865%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001952008101__p2121445176">Maximum retention period of performance snapshots. A large value will require a lot of disk space. The unit is day.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_00139.html">Workload Analysis</a></div>
|
|
</div>
|
|
</div>
|
|
|