taurusdb_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
@ -8,7 +8,12 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr id="change_history__row124561429481"><td class="cellrowborder" valign="top" width="21.85%" headers="mcps1.3.1.1.3.1.1 "><p id="change_history__p845614291581">2025-08-29</p>
|
<tbody><tr id="change_history__row819795725015"><td class="cellrowborder" valign="top" width="21.85%" headers="mcps1.3.1.1.3.1.1 "><p id="change_history__p62029620516">2025-12-01</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="78.14999999999999%" headers="mcps1.3.1.1.3.1.2 "><p id="change_history__p1020219610518">Added <a href="en-us_topic_0000002521462465.html">DBA Assistant</a>.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="change_history__row124561429481"><td class="cellrowborder" valign="top" width="21.85%" headers="mcps1.3.1.1.3.1.1 "><p id="change_history__p845614291581">2025-08-29</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="78.14999999999999%" headers="mcps1.3.1.1.3.1.2 "><p id="change_history__p14685114312819">Added the following content to <a href="gaussdb_03_0085.html">Configuring Displayed Metrics</a>:</p>
|
<td class="cellrowborder" valign="top" width="78.14999999999999%" headers="mcps1.3.1.1.3.1.2 "><p id="change_history__p14685114312819">Added the following content to <a href="gaussdb_03_0085.html">Configuring Displayed Metrics</a>:</p>
|
||||||
<ul id="change_history__ul18545165418812"><li id="change_history__li8963152919"><a href="gaussdb_03_0085.html#gaussdb_03_0085__section749614207529">Namespace</a></li><li id="change_history__li896312515912"><a href="gaussdb_03_0085.html#gaussdb_03_0085__section96523253711">Dimension</a></li></ul>
|
<ul id="change_history__ul18545165418812"><li id="change_history__li8963152919"><a href="gaussdb_03_0085.html#gaussdb_03_0085__section749614207529">Namespace</a></li><li id="change_history__li896312515912"><a href="gaussdb_03_0085.html#gaussdb_03_0085__section96523253711">Dimension</a></li></ul>
|
||||||
|
|||||||
BIN
docs/taurusdb/umn/en-us_image_0000002486209558.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
docs/taurusdb/umn/en-us_image_0000002494971108.png
Normal file
|
After Width: | Height: | Size: 541 B |
BIN
docs/taurusdb/umn/en-us_image_0000002495130974.png
Normal file
|
After Width: | Height: | Size: 582 B |
BIN
docs/taurusdb/umn/en-us_image_0000002495131002.png
Normal file
|
After Width: | Height: | Size: 541 B |
BIN
docs/taurusdb/umn/en-us_image_0000002518409421.png
Normal file
|
After Width: | Height: | Size: 1004 B |
BIN
docs/taurusdb/umn/en-us_image_0000002527170671.png
Normal file
|
After Width: | Height: | Size: 559 B |
BIN
docs/taurusdb/umn/en-us_image_0000002527170759.png
Normal file
|
After Width: | Height: | Size: 541 B |
BIN
docs/taurusdb/umn/en-us_image_0000002527290701.png
Normal file
|
After Width: | Height: | Size: 680 B |
65
docs/taurusdb/umn/en-us_topic_0000002489182676.html
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002489182676"></a><a name="EN-US_TOPIC_0000002489182676"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Viewing the Overall Status of a DB Instance</h1>
|
||||||
|
<div id="body8662426"><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p195998230203">The <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b36891458131913">Dashboard</strong> page allows you to view the overall status of the current DB instance, including alarms, health check results, compute resource usage, storage resource usage, and key performance metrics.</p>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_section744517401220"><h4 class="sectiontitle">Alarms</h4><ol id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_ol105521739133114"><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_li20781201244718"><span>Log in to the management console.</span></li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_li1178113129471"><span>Click <span><img id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_li1878271212473"><span>Click <span><img id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_li1426913204172"><span>On the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b76499611410">Instances</strong> page, click the instance name.</span></li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_li499974911328"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b2659174162812">DBA Assistant</strong> > <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b12660848283">Real-Time Diagnosis</strong>.</span></li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_li15550224331"><span>On the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b15371510142819">Dashboard</strong> page, view instance alarms provided by Cloud Eye.</span><p><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_p108450113501">You can customize alarm rules by adjusting alarm policies and severities for key metrics, such as CPU usage and disk usage. To view alarm details, click the number next to an alarm severity.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p2012418431259"></p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p1786661815318"></p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p9804164354711"></p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_section188641051182316"><h4 class="sectiontitle">Health</h4><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p624963732012">In the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b0518193852917">Health</strong> area, you can view real-time health check results. By default, the data for high vCPU utilization, memory bottlenecks, high-frequency slow SQL statements, and lock waits are displayed.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_p14427213101015">For abnormal metrics, click <strong id="EN-US_TOPIC_0000002489182676__b31516589342">Diagnose</strong> to view diagnosis details and suggestions. For details, see <a href="#EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110">Table 1</a>.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p357831113317">For details about metrics, see <a href="gaussdb_03_0088.html">Viewing Monitoring Metrics</a>. For details about how to configure alarm rules on Cloud Eye, see <a href="gaussdb_03_0087.html">Setting Alarm Rules</a>.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p2190124172614"></p>
|
||||||
|
|
||||||
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110"></a><a name="en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Health diagnosis and suggestions</caption><thead align="left"><tr id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_row919795173119"><th align="left" class="cellrowborder" valign="top" width="24.136863291531196%" id="mcps1.3.3.6.2.3.1.1"><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p3197165193117">Item</p>
|
||||||
|
</th>
|
||||||
|
<th align="left" class="cellrowborder" valign="top" width="75.8631367084688%" id="mcps1.3.3.6.2.3.1.2"><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p319785143111">Exception Trigger Condition</p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_row13197858315"><td class="cellrowborder" valign="top" width="24.136863291531196%" headers="mcps1.3.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p819716515316">High vCPU utilization</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="75.8631367084688%" headers="mcps1.3.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p121972573116">Either of the following conditions is met:</p>
|
||||||
|
<ul id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_ul14730142184217"><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li147317234214">After you configure alarm rules on Cloud Eye, an alarm is reported, indicating the CPU usage is high.</li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li1473115274214">The CPU usage exceeds 95% for more than 2.5 minutes of a 5-minute measurement period.</li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_row145642239353"><td class="cellrowborder" valign="top" width="24.136863291531196%" headers="mcps1.3.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p16565142313353">Memory bottleneck</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="75.8631367084688%" headers="mcps1.3.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p4426664436">Either of the following conditions is met:</p>
|
||||||
|
<ul id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_ul34324634312"><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li1943216674312">After you configure alarm rules on Cloud Eye, an alarm is reported, indicating the memory usage is high.</li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li1943286114316">The memory usage exceeds 95% within a 5-minute measurement period.</li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_row145643463515"><td class="cellrowborder" valign="top" width="24.136863291531196%" headers="mcps1.3.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p6576344356">High-frequency slow SQL</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="75.8631367084688%" headers="mcps1.3.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p1742319193436">Either of the following conditions is met:</p>
|
||||||
|
<ul id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_ul164261419144319"><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li1642621944317">After you configure alarm rules on Cloud Eye, an alarm is reported, indicating there are too many slow logs.</li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li1342631964320">There are more than 100 slow logs within five minutes.</li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_row1542144316355"><td class="cellrowborder" valign="top" width="24.136863291531196%" headers="mcps1.3.3.6.2.3.1.1 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p11542134319357">Lock wait</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="75.8631367084688%" headers="mcps1.3.3.6.2.3.1.2 "><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p2349141205816">After you configure alarm rules on Cloud Eye, any of the following alarms is reported:</p>
|
||||||
|
<ul id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_ul681219289591"><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li981272811594">Row Lock Time</li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li148121328205914">InnoDB Row Locks</li><li id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_li781222815917">Row Lock Waits</li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_section078075019181"><h4 class="sectiontitle">Compute Resource Usage</h4><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p10886177161919">In the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b639536203420">Compute Resource Usage</strong> area, the vCPU usage and memory usage are displayed by default. The displayed values are the average values for 5-minute measurement periods.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p104646581786"></p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_section15831510141913"><h4 class="sectiontitle">Storage Resource Usage</h4><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_p14809172481915">In the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b1187231113417">Storage Resource Usage</strong> area, the storage usage, disk read IOPS, and disk write IOPS are displayed by default. The displayed values are the average values for 5-minute measurement periods.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p3431313151016"></p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_section38181966272"><h4 class="sectiontitle">Key Performance Metrics</h4><p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_en-us_topic_0000001372916221_p1728361831711">In the <strong id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_b692814217348">Key Performance Metrics</strong> area, the CPU usage & slow query logs, connections, memory utilization, and disk reads/writes from the last hour are displayed by default. The displayed values are real-time values.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002489182676__en-us_topic_0000002002572404_p1040522371112"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521502461.html">Performance Monitoring</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
102
docs/taurusdb/umn/en-us_topic_0000002489182682.html
Normal file
67
docs/taurusdb/umn/en-us_topic_0000002489342648.html
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002489342648"></a><a name="EN-US_TOPIC_0000002489342648"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">What Is DBA Assistant?</h1>
|
||||||
|
<div id="body8662426"><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p935655144714">DBA Assistant provides visualized database O&M and intelligent diagnosis for developers and database administrators (DBAs), making database O&M easy and efficient. </p>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_section339904017416"><h4 class="sectiontitle">Functions</h4><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p3504204419810"><a href="#EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_table3237102219912">Table 1</a> lists the functions supported by DBA Assistant.</p>
|
||||||
|
|
||||||
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_table3237102219912"></a><a name="en-us_topic_0000001882567616_table3237102219912"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_table3237102219912" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Function description</caption><thead align="left"><tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row15237122217915"><th align="left" class="cellrowborder" valign="top" width="13.26%" id="mcps1.3.2.3.2.4.1.1"><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p0237322599"><strong id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_b5478375267">Function</strong></p>
|
||||||
|
</th>
|
||||||
|
<th align="left" class="cellrowborder" valign="top" width="61.61%" id="mcps1.3.2.3.2.4.1.2"><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1723712218910"><strong id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_b16164143920261">Description</strong></p>
|
||||||
|
</th>
|
||||||
|
<th align="left" class="cellrowborder" valign="top" width="25.130000000000003%" id="mcps1.3.2.3.2.4.1.3"><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p75331348312"><strong id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_b1896716417276">Reference</strong></p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row423742210912"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p11237122219911">Dashboard</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1123715221999">Shows the status of your instance, including alarms, resource usages, and key performance metrics. DBA Assistant diagnoses instance health using operational data analytics and intelligent algorithms, and provides you with solutions and suggestions for handling detected exceptions.</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1589544617146"><a href="en-us_topic_0000002489182676.html">Viewing the Overall Status of a DB Instance</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row122371922290"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p11303721141010">Sessions</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p104476402068">The <strong id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_b205455550445">Sessions</strong> page displays slow sessions, active sessions, and total sessions. You can quickly filter slow sessions or active sessions by user, host IP address, or database name. Kill Session and SQL Throttling can be used for urgent instance recovery to ensure database availability.</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1403650667"><a href="en-us_topic_0000002521502463.html">Managing Real-Time Sessions</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row132371225912"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p112372223915">Performance</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1025104870">The <strong id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_b1948972512452">Performance</strong> page displays key metrics of your instance and provides metric comparison between different days. You can keep track of metric changes and detect exceptions in a timely manner. </p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p1653411419319"><a href="en-us_topic_0000002521502461.html">Performance Monitoring</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row103251854191010"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p18325105420102">Slow Query Logs</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p2098313168914">Displays slow queries within a specified time period. You can view top 5 slow query logs by user or IP address, sort statistics, and identify sources of slow SQL statements.</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p14534148319"><a href="taurusdb_03_0161.html">Viewing Slow Query Logs</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row157411391390"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p174118394914">SQL Explorer</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p874114391090">After <strong id="EN-US_TOPIC_0000002489342648__b19413104681113">Collect All Query Logs</strong> is enabled, you can filter, search for, and analyze SQL statements in multiple dimensions and gain a comprehensive insight into all SQL statements. <strong id="EN-US_TOPIC_0000002489342648__b341354614116">Top SQL</strong> helps you locate exceptions.</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><ul id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_ul299617333360"><li id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_li1996933183620"><a href="taurusdb_03_0164.html">Viewing Top SQL Statements</a></li><li id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_li1996133153614"><a href="taurusdb_03_0162.html">Creating a SQL Insights Task</a></li></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_row05371954201017"><td class="cellrowborder" valign="top" width="13.26%" headers="mcps1.3.2.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p185377548100">SQL Throttling</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="61.61%" headers="mcps1.3.2.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p113783121108">SQL Throttling restricts the execution of SQL statements based on specified rules when there are SQL statements that cannot be optimized timely or a resource (for example, vCPU) bottleneck occurs.</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="25.130000000000003%" headers="mcps1.3.2.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002489342648__en-us_topic_0000001882567616_p35347413311"><a href="taurusdb_03_0163.html">Configuring SQL Throttling</a></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521462465.html">DBA Assistant</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
17
docs/taurusdb/umn/en-us_topic_0000002489342650.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002489342650"></a><a name="EN-US_TOPIC_0000002489342650"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Problem Diagnosis</h1>
|
||||||
|
<div id="body8662426"></div>
|
||||||
|
<div>
|
||||||
|
<ul class="ullinks">
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002521502463.html">Managing Real-Time Sessions</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002521462469.html">Viewing Anomaly Snapshots</a></strong><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521462465.html">DBA Assistant</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
22
docs/taurusdb/umn/en-us_topic_0000002521462465.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002521462465"></a><a name="EN-US_TOPIC_0000002521462465"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">DBA Assistant</h1>
|
||||||
|
<div id="body8662426"><p id="EN-US_TOPIC_0000002521462465__en-us_topic_0000001928646485_p8060118"></p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="ullinks">
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002489342648.html">What Is DBA Assistant?</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002521502461.html">Performance Monitoring</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002489342650.html">Problem Diagnosis</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002521502465.html">SQL Analysis and Tuning</a></strong><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="gaussdb_usermanual.html">Working with TaurusDB</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
34
docs/taurusdb/umn/en-us_topic_0000002521462469.html
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002521462469"></a><a name="EN-US_TOPIC_0000002521462469"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Viewing Anomaly Snapshots</h1>
|
||||||
|
<div id="body8662426"><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p8060118">After anomaly diagnosis is enabled, the system checks your instance health status and diagnoses faults. If there is an anomaly, its snapshots will be collected, helping you monitor instance performance in real time.</p>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_section103361542173016"><h4 class="sectiontitle">Diagnosis Item</h4>
|
||||||
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_table9521791237"></a><a name="en-us_topic_0000002009238626_table9521791237"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_table9521791237" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Diagnosis item</caption><thead align="left"><tr id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_row10535918319"><th align="left" class="cellrowborder" valign="top" width="41.39%" id="mcps1.3.2.2.2.3.1.1"><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p2531391034"><strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b99272488220">Item</strong></p>
|
||||||
|
</th>
|
||||||
|
<th align="left" class="cellrowborder" valign="top" width="58.60999999999999%" id="mcps1.3.2.2.2.3.1.2"><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p1253491835"><strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b14667937185117">Description</strong></p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody><tr id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_row125317919311"><td class="cellrowborder" valign="top" width="41.39%" headers="mcps1.3.2.2.2.3.1.1 "><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p2531292037">Transaction uncommitted</p>
|
||||||
|
</td>
|
||||||
|
<td class="cellrowborder" valign="top" width="58.60999999999999%" headers="mcps1.3.2.2.2.3.1.2 "><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p115359936">There are uncommitted transactions.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_section1351019822913"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p4303131342914">Collecting abnormal snapshots will cause about 5% of instance performance loss.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_section8871312173416"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_ol14861938171620"><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_li20781201244718"><span>Log in to the management console.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_li1178113129471"><span>Click <span><img id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_li1878271212473"><span>Click <span><img id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_en-us_topic_0000001615182888_en-us_topic_0000001321889334_li1426913204172"><span>On the <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b6878931111417">Instances</strong> page, click the instance name.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_en-us_topic_0000001615182888_en-us_topic_0000001321889334_li499974911328"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b177461934142616">DBA Assistant</strong> > <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b187471534152611">Historical Diagnosis</strong>.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_li1831331143515"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_uicontrol753120103611"><b>Anomaly Snapshots</b></span>.</span></li><li id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_li2791198371"><span>Click <span><img id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_image4684554103818" src="en-us_image_0000002527170671.png"></span> on the right of <span class="uicontrol" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_uicontrol67458303561"><b>Collect Abnormal Snapshots</b></span> to enable anomaly diagnosis.</span><p><p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p197259149457">After anomaly diagnosis is enabled, if any anomaly listed in <a href="#EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_table9521791237">Table 1</a> occurs, you can view its snapshots. Anomaly snapshot records are retained for seven days and will be deleted after this time expires. A maximum of 100 records can be retained for a single node.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p4161815457">Click <span class="uicontrol" id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_uicontrol3272103320457"><b>Diagnosis Details</b></span> in the <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b421611473416">Operation</strong> column to view diagnosis result details and optimization suggestions.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_p16316859114914">Click the <strong id="EN-US_TOPIC_0000002521462469__en-us_topic_0000002009238626_b957613586510">Anomaly Snapshots</strong> tab to view session snapshots, metadata lock snapshots, InnoDB lock snapshots, and transaction snapshots.</p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002489342650.html">Problem Diagnosis</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
21
docs/taurusdb/umn/en-us_topic_0000002521502461.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002521502461"></a><a name="EN-US_TOPIC_0000002521502461"></a>
|
||||||
|
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Performance Monitoring</h1>
|
||||||
|
|
||||||
|
<div id="body8662426"><p id="EN-US_TOPIC_0000002521502461__en-us_topic_0000001882567596_p8060118"></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="ullinks">
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002489182676.html">Viewing the Overall Status of a DB Instance</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="taurusdb_03_0158.html">Viewing Real-Time Performance Metrics</a></strong><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521462465.html">DBA Assistant</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
19
docs/taurusdb/umn/en-us_topic_0000002521502463.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002521502463"></a><a name="EN-US_TOPIC_0000002521502463"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Managing Real-Time Sessions</h1>
|
||||||
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_section4111051174014"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_p58404544406">You can view current session statistics of your instance and kill abnormal sessions.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_section164951727204818"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_p1175810313486">Killing a session may cause the application to disconnect from the instance. Your application should be able to reconnect to the instance.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_section9386255131014"><h4 class="sectiontitle">Setting a Slow Session Threshold</h4><ol id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_ol105521739133114"><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_li20781201244718"><span>Log in to the management console.</span></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_li1178113129471"><span>Click <span><img id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_li1878271212473"><span>Click <span><img id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_li1426913204172"><span>On the <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_b170834076931322">Instances</strong> page, click the instance name.</span></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_li499974911328"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_b2082620910447">DBA Assistant</strong> > <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_b682659164416">Real-Time Diagnosis</strong>.</span></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_li15550224331"><span>Click the <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_b471910150440">Sessions</strong> tab to view current session statistics by user, access host, and database.</span><p><p id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_p3862354603"></p>
|
||||||
|
</p></li><li id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_en-us_topic_0000001372555901_li224116153392"><span>In the session list, select the abnormal session you want to kill and click <strong id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_b497715019492">Kill Session</strong> to recover the database.</span><p><p id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_p11369644152313">A maximum of 20 sessions can be killed at once.</p>
|
||||||
|
<p id="EN-US_TOPIC_0000002521502463__en-us_topic_0000002014807828_p9197655205914">To kill sessions automatically, see <a href="en-us_topic_0000002489182682.html">Using Auto Kill Sessions</a>.</p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002489342650.html">Problem Diagnosis</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
23
docs/taurusdb/umn/en-us_topic_0000002521502465.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<a name="EN-US_TOPIC_0000002521502465"></a><a name="EN-US_TOPIC_0000002521502465"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">SQL Analysis and Tuning</h1>
|
||||||
|
<div id="body8662426"></div>
|
||||||
|
<div>
|
||||||
|
<ul class="ullinks">
|
||||||
|
<li class="ulchildlink"><strong><a href="taurusdb_03_0161.html">Viewing Slow Query Logs</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="taurusdb_03_0164.html">Viewing Top SQL Statements</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="taurusdb_03_0162.html">Creating a SQL Insights Task</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="taurusdb_03_0163.html">Configuring SQL Throttling</a></strong><br>
|
||||||
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002489182682.html">Using Auto Kill Sessions</a></strong><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521462465.html">DBA Assistant</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@ -16,6 +16,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="ulchildlink"><strong><a href="gaussdbformysql_03_0120.html">Database Management</a></strong><br>
|
<li class="ulchildlink"><strong><a href="gaussdbformysql_03_0120.html">Database Management</a></strong><br>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="ulchildlink"><strong><a href="en-us_topic_0000002521462465.html">DBA Assistant</a></strong><br>
|
||||||
|
</li>
|
||||||
<li class="ulchildlink"><strong><a href="gaussdbformysql_03_0130.html">Account Management (Non-Administrator)</a></strong><br>
|
<li class="ulchildlink"><strong><a href="gaussdbformysql_03_0130.html">Account Management (Non-Administrator)</a></strong><br>
|
||||||
</li>
|
</li>
|
||||||
<li class="ulchildlink"><strong><a href="gaussdb_03_0050.html">Data Security</a></strong><br>
|
<li class="ulchildlink"><strong><a href="gaussdb_03_0050.html">Data Security</a></strong><br>
|
||||||
|
|||||||
15
docs/taurusdb/umn/taurusdb_03_0158.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<a name="taurusdb_03_0158"></a><a name="taurusdb_03_0158"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Viewing Real-Time Performance Metrics</h1>
|
||||||
|
<div id="body8662426"><p id="taurusdb_03_0158__en-us_topic_0000001928566781_p8671216131610"><span id="taurusdb_03_0158__en-us_topic_0000001928566781_text11764115104618">TaurusDB</span> allows you to view performance metrics and trends of DB instances in real time, helping you detect and handle potential performance problems in a timely manner.</p>
|
||||||
|
<div class="section" id="taurusdb_03_0158__en-us_topic_0000001928566781_section162691738161712"><h4 class="sectiontitle">Viewing Real-Time Metrics</h4><ol id="taurusdb_03_0158__en-us_topic_0000001928566781_en-us_topic_0000001498545068_en-us_topic_0000001322368894_ol105521739133114"><li id="taurusdb_03_0158__en-us_topic_0000001928566781_li20781201244718"><span>Log in to the management console.</span></li><li id="taurusdb_03_0158__en-us_topic_0000001928566781_li1178113129471"><span>Click <span><img id="taurusdb_03_0158__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0158__en-us_topic_0000001928566781_li1878271212473"><span>Click <span><img id="taurusdb_03_0158__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0158__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="taurusdb_03_0158__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="taurusdb_03_0158__en-us_topic_0000001928566781_en-us_topic_0000001498545068_en-us_topic_0000001322368894_li1426913204172"><span>On the <strong id="taurusdb_03_0158__en-us_topic_0000001928566781_b3798201111415">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0158__en-us_topic_0000001928566781_en-us_topic_0000001498545068_en-us_topic_0000001322368894_li499974911328"><span>In the navigation pane, choose <strong id="taurusdb_03_0158__en-us_topic_0000001928566781_b2419152614218">DBA Assistant</strong> > <strong id="taurusdb_03_0158__en-us_topic_0000001928566781_b5421172618216">Real-Time Diagnosis</strong>.</span></li><li id="taurusdb_03_0158__en-us_topic_0000001928566781_en-us_topic_0000001498545068_en-us_topic_0000001322368894_li15550224331"><span>Click the <strong id="taurusdb_03_0158__en-us_topic_0000001928566781_b23507341439">Performance</strong> tab to view the performance metrics of your DB instance.</span><p><p id="taurusdb_03_0158__en-us_topic_0000001928566781_p355312119547">Click <strong id="taurusdb_03_0158__en-us_topic_0000001928566781_b0528205873319">Select Metric</strong> to add or delete performance metrics.</p>
|
||||||
|
<p id="taurusdb_03_0158__en-us_topic_0000001928566781_p18463111174713"></p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521502461.html">Performance Monitoring</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
57
docs/taurusdb/umn/taurusdb_03_0161.html
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<a name="taurusdb_03_0161"></a><a name="taurusdb_03_0161"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Viewing Slow Query Logs</h1>
|
||||||
|
<div id="body8662426"><div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section10548122533817"><h4 class="sectiontitle">Scenarios</h4><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p954872573818"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b13182712182612">Slow Query Logs</strong> displays a chart of SQL statements that are taking too long to execute and allows you to sort slow SQL statements by multiple dimensions, such as by user, host, or SQL template. It helps you quickly identify bottlenecks and improve instance performance.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section5105162263714"><h4 class="sectiontitle">Constraints</h4><ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul1278213121116"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li3782171212120">If you did not subscribe to Intelligent O&M, you can only view the data of the last hour. The data will be automatically deleted when it expires. You are advised to subscribe to Intelligent O&M. This will allow data to be stored for up to 30 days. For details, see <a href="#taurusdb_03_0161__en-us_topic_0000001882727596_section978713131721">Subscribing to Intelligent O&M</a>.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li167821612813">After <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b151990919369">Collect Slow Query Logs</strong> is enabled, SQL text will be stored in OBS.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1385983217476">Incorrectly optimizing slow queries may cause service exceptions. Exercise caution when performing this operation.</li></ul>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section978713131721"><a name="taurusdb_03_0161__en-us_topic_0000001882727596_section978713131721"></a><a name="en-us_topic_0000001882727596_section978713131721"></a><div class="dropdownexpand"><div class="dropdowntitle" onclick="ExpandorCollapseNode(this)"><h4 class="sectiontitle">Subscribing to Intelligent O&M</h4></div><div class="dropdowncontext"></div><div class="dropdowncontext"><ol id="taurusdb_03_0161__en-us_topic_0000001882727596_ol4456105142815"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li20781201244718"><span>Log in to the management console.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1178113129471"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1878271212473"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li652447182812"><span>On the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b449918212711">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li552487152813"><span>In the navigation pane, choose <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b13601036533">DBA Assistant</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b436112313532">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li5986181032815"><span>Click the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b6373204115316">Slow Query Logs</strong> tab.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li194081016163611"><span>Click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b5938143304012">Subscribe</strong>. In the displayed dialog box, you can learn about Intelligent O&M functions and pricing.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p1755819004018"></p>
|
||||||
|
</p></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li108771021413"><span>Select "I have read and understand the billing rules." and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b6609155144418">Subscribe</strong>.</span></li></ol>
|
||||||
|
</div></div></div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section17231125814481"><div class="dropdownexpand"><div class="dropdowntitle" onclick="ExpandorCollapseNode(this)"><h4 class="sectiontitle">Collecting Slow Query Logs</h4></div><div class="dropdowncontext"></div><div class="dropdowncontext"><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p127023281495">Click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1271743192511">Log Settings</strong> in the upper right corner. In the displayed dialog box, enable <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b32872428264">Collect Slow Query Logs</strong> and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b585265520261">OK</strong>. SQL statement logs can then be stored for analysis.</p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p6702152816498">If you do not need to collect slow query logs later, you can disable <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b17597151022913">Collect Slow Query Logs</strong>. If <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b5601131173317">Collect Slow Query Logs</strong> is disabled, new SQL statements will not be collected anymore and the collected SQL data will be deleted.</p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p49945413516"></p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p1639413432525"></p>
|
||||||
|
</div></div></div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section174541944174411"><div class="dropdownexpand"><div class="dropdowntitle" onclick="ExpandorCollapseNode(this)"><h4 class="sectiontitle">Slow Query Log Storage</h4></div><div class="dropdowncontext"></div><div class="dropdowncontext"><ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul6738191315912"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li073813131894">Intelligent O&M subscribed:<div class="p" id="taurusdb_03_0161__en-us_topic_0000001882727596_p13606134174615"><a name="taurusdb_03_0161__en-us_topic_0000001882727596_li073813131894"></a><a name="en-us_topic_0000001882727596_li073813131894"></a>Click <strong id="taurusdb_03_0161__b17370145224218">Log Settings</strong> in the upper right corner. In the displayed dialog box, set <strong id="taurusdb_03_0161__b17209745194310">Slow Query Log Retention</strong> in the <strong id="taurusdb_03_0161__b8507594446">Log Storage and Archiving</strong> area.<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul1338061834612"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li438021820468"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b423554515470">Slow Query Log Retention</strong>: The default value is <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b123654514717">7</strong>. The value ranges from 1 to 30 days. After the period expires, the logs are automatically deleted.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li938051864617"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b563700134818">All Query Log Retention</strong>: The default value is <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b14637100194810">7</strong>. The value ranges from 1 to 180 days.</li></ul>
|
||||||
|
</div>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p1691132392"></p>
|
||||||
|
</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li174941163911">Intelligent O&M not subscribed:<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul11747135118915"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li207473512099"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b11721162813182">Slow Query Log Retention</strong>: 1 hour. After the period expires, the logs are automatically deleted.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1774712517915"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1310394911710">All Query Log Retention</strong>: 1 hour</li></ul>
|
||||||
|
</li></ul>
|
||||||
|
</div></div></div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section135971519143819"><h4 class="sectiontitle">Viewing Slow Queries over Time</h4><ol id="taurusdb_03_0161__en-us_topic_0000001882727596_ol1354842514387"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li186011930202210"><span>Log in to the management console.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1601430102210"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293_1" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li16601143017228"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225_1" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b157244310216_1">Databases</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b135721243182114_1">TaurusDB</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li054852543810"><span>On the <strong id="taurusdb_03_0161__b388985484">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li15481725103810"><span>In the navigation pane, choose <strong id="taurusdb_03_0161__b1447501043">DBA Assistant</strong> > <strong id="taurusdb_03_0161__b1015940585">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li954810258386"><span>Click the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b539919471682">Slow Query Logs</strong> tab.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li12548112518385"><span>Select a time range, and view slow queries over time by instance or node.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p145486259385">You can view slow query logs in the last 1 hour, last 3 hours, last 6 hours, last 12 hours, or a custom time period.</p>
|
||||||
|
</p></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li14347151713147"><span>Above the chart, switch to another instance or node to view its slow queries over time.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p13944151111">Move the cursor to a point in time of the chart to view the number of slow query logs and CPU usage at the point in time.</p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p8497114383"></p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section484111611255"><h4 class="sectiontitle">Viewing Slow Query Log Details</h4><ol id="taurusdb_03_0161__en-us_topic_0000001882727596_ol884112619251"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1190703982219"><span>Log in to the management console.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li129079397229"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293_2" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1907163902215"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225_2" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b157244310216_2">Databases</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b135721243182114_2">TaurusDB</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li384110652515"><span>On the <strong id="taurusdb_03_0161__b1304972593">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1384186192512"><span>In the navigation pane, choose <strong id="taurusdb_03_0161__b757867678">DBA Assistant</strong> > <strong id="taurusdb_03_0161__b1549594869">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1584112611251"><span>Click the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b5759550488">Slow Query Logs</strong> tab.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1184115652514"><span>Select an instance, node, and time range, and view slow query log details. The details include the SQL statement, execution start time, database, client, user, execution duration, lock wait duration, and scanned and returned rows.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p084117612253">You can view slow query logs in the last 1 hour, last 3 hours, last 6 hours, last 12 hours, or a custom time period.</p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p165169131457"></p>
|
||||||
|
<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul14841267252"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li54613311115">Export slow query log details.<ol type="a" id="taurusdb_03_0161__en-us_topic_0000001882727596_ol260233271510"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li26615121419">Click <span class="uicontrol" id="taurusdb_03_0161__en-us_topic_0000001882727596_uicontrol9241862206"><b>Export</b></span>.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li208837558132">In the displayed dialog box, select <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b468516209219">Quick export</strong> or <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b13109123182111">Export all</strong> for <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b141622028202115">Export Mode</strong>.<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p63573123215"></p>
|
||||||
|
<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul76658535243"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li7665105310246"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b7756134862112">Quick export</strong>: Log details are exported to your local PC. Only the first 1,000 records can be exported.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li196651753112411"><strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b112583313384">Export all</strong>: Select an OBS bucket and a directory to export log details to the OBS bucket. Up to 100,000 records can be exported.<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p1321013459241">If no OBS bucket is available, create one on the OBS console. For details, see the OBS documentation.</p>
|
||||||
|
</li></ul>
|
||||||
|
</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li342310595246">Click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b6203231193714">OK</strong>.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li9602103210159">After the slow query log details are exported, click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1768945273013">View All Export Records</strong>. In the displayed dialog box, click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b12134520193113">Download</strong> in the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1554372113117">Operation</strong> column. After the download is complete, view the slow query log details in the ZIP package.</li></ol>
|
||||||
|
</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li184266122514">To add a SQL throttling rule, locate a record and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1239133522116">SQL Throttling</strong> in the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b13239135162118">Operation</strong> column. In the displayed dialog box, specify <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b723903513211">SQL Type</strong>, <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b15239173510217">Keyword</strong>, and <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b17239163562112">Max. Concurrent Requests</strong>, and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b15224174011396">OK</strong>. For details, see <a href="taurusdb_03_0163.html">Configuring SQL Throttling</a>.</li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li284216682510">To view SQL diagnosis results, locate a record and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b7467417143819">Diagnose</strong> in the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b01020208383">Operation</strong> column. In the displayed dialog box, confirm the slow SQL statement to be diagnosed and click <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b251311355380">OK</strong>. In the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b16691831410">Diagnosis Details</strong> area, you can see the SQL diagnosis results.<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p6842669253"></p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p8842196162511"></p>
|
||||||
|
</li></ul>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section972919291519"><h4 class="sectiontitle">Viewing Top 5 Slow Query Logs</h4><ol id="taurusdb_03_0161__en-us_topic_0000001882727596_ol76728341159"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li17858114910221"><span>Log in to the management console.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li13858164922211"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293_3" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li78581749182212"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225_3" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b157244310216_3">Databases</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b135721243182114_3">TaurusDB</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li2672193412510"><span>On the <strong id="taurusdb_03_0161__b1997666357">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li06721334159"><span>In the navigation pane, choose <strong id="taurusdb_03_0161__b790973604">DBA Assistant</strong> > <strong id="taurusdb_03_0161__b1284464383">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li8672434454"><span>Click the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1376011508811">Slow Query Logs</strong> tab.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li176722341659"><span>Select an instance, node, and time range. In the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b1346216018507">Top 5 Slow Query Logs</strong> area, view the top 5 slow SQL statements by user or client IP address.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p1967313410517">You can view slow query logs in the last 1 hour, last 3 hours, last 6 hours, last 12 hours, or a custom time period.</p>
|
||||||
|
<p id="taurusdb_03_0161__en-us_topic_0000001882727596_p167317341512"></p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0161__en-us_topic_0000001882727596_section417311913154"><h4 class="sectiontitle">Viewing Template Statistics</h4><ol id="taurusdb_03_0161__en-us_topic_0000001882727596_ol16402111318156"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li172021457122213"><span>Log in to the management console.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li15202145715228"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293_4" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1202155712210"><span>Click <span><img id="taurusdb_03_0161__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225_4" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b157244310216_4">Databases</strong> > <strong id="taurusdb_03_0161__en-us_topic_0000002518288963_b135721243182114_4">TaurusDB</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li4402213181516"><span>On the <strong id="taurusdb_03_0161__b988048712">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li14402141391515"><span>In the navigation pane, choose <strong id="taurusdb_03_0161__b803710913">DBA Assistant</strong> > <strong id="taurusdb_03_0161__b786238834">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li134021313151516"><span>Click the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b13760450886">Slow Query Logs</strong> tab.</span></li><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li4402141361513"><span>Select an instance, node, and time range, and view the template statistics.</span><p><p id="taurusdb_03_0161__en-us_topic_0000001882727596_p43102026151618"></p>
|
||||||
|
<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul327018272196"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li18270192717196">Click <span class="uicontrol" id="taurusdb_03_0161__en-us_topic_0000001882727596_uicontrol102973244186"><b>View Sample</b></span> in the <strong id="taurusdb_03_0161__en-us_topic_0000001882727596_b12298152413183">Operation</strong> to view the sample of a SQL template.</li></ul>
|
||||||
|
<ul id="taurusdb_03_0161__en-us_topic_0000001882727596_ul11957164271916"><li id="taurusdb_03_0161__en-us_topic_0000001882727596_li1151315446215">Export template statistics.<ol type="a" id="taurusdb_03_0161__en-us_topic_0000001882727596_ol79311152192110"><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li26615121419">Click <span class="uicontrol" id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_uicontrol9241862206"><b>Export</b></span>.</li><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li208837558132">In the displayed dialog box, select <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b468516209219">Quick export</strong> or <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b13109123182111">Export all</strong> for <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b141622028202115">Export Mode</strong>.<p id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_p63573123215"></p>
|
||||||
|
<ul id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_ul76658535243"><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li7665105310246"><strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b7756134862112">Quick export</strong>: Log details are exported to your local PC. Only the first 1,000 records can be exported.</li><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li196651753112411"><strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b112583313384">Export all</strong>: Select an OBS bucket and a directory to export log details to the OBS bucket. Up to 100,000 records can be exported.<p id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_p1321013459241">If no OBS bucket is available, create one on the OBS console. For details, see the OBS documentation.</p>
|
||||||
|
</li></ul>
|
||||||
|
</li><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li342310595246">Click <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b6203231193714">OK</strong>.</li><li id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_li9602103210159">After the slow query log details are exported, click <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b1768945273013">View All Export Records</strong>. In the displayed dialog box, click <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b12134520193113">Download</strong> in the <strong id="taurusdb_03_0161__taurusdb_03_0161_en-us_topic_0000001882727596_b1554372113117">Operation</strong> column. After the download is complete, view the slow query log details in the ZIP package.</li></ol>
|
||||||
|
</li></ul>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521502465.html">SQL Analysis and Tuning</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
23
docs/taurusdb/umn/taurusdb_03_0162.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<a name="taurusdb_03_0162"></a><a name="taurusdb_03_0162"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Creating a SQL Insights Task</h1>
|
||||||
|
<div id="body8662426"><div class="section" id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_section1971851135214"><h4 class="sectiontitle">Scenarios</h4><p id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_p27591316524">SQL Insights allows you to not only query all executed SQL statements, but also analyze and search for the tables that are accessed and updated most frequently, and the SQL statements that have the longest lock wait, helping you quickly identify exceptions.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_section54382019134917"><h4 class="sectiontitle">Constraints</h4><ul id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_ul139961419541"><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_li680816054614">You need to enable <strong id="taurusdb_03_0162__b544015116136">Collect All Query Logs</strong> before using SQL Insights. Collecting all query logs will reduce instance performance by up to 5%.</li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_li1123174914616">After <strong id="taurusdb_03_0162__b11484148141314">Collect All Query Logs</strong> is disabled, new SQL statements will not be collected anymore and the collected SQL data will be deleted.</li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li16996114185414">Some data cannot be recorded if a buffer overrun occurs.</li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li13371738153318">Any SQL statement that exceeds the value of <span class="parmname" id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_parmname863119297584"><b>rds_sql_tracer_max_record_size</b></span> will not be recorded by default. <p id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_p193321841203319">To configure the parameter value, see <a href="gaussdb_08_0112.html">Modifying a Parameter Template</a>.</p>
|
||||||
|
</li></ul>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_section10536185192020"><h4 class="sectiontitle">Procedure</h4><ol id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_ol1314114919495"><li id="taurusdb_03_0162__en-us_topic_0000001882727628_li20781201244718"><span>Log in to the management console.</span></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_li1178113129471"><span>Click <span><img id="taurusdb_03_0162__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_li1878271212473"><span>Click <span><img id="taurusdb_03_0162__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0162__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="taurusdb_03_0162__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li1426913204172"><span>On the <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b546920943313">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li499974911328"><span>In the navigation pane, choose <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b16804205919315">DBA Assistant</strong> > <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b78041459113118">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li15550224331"><span>Click <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b109862715517">SQL Explorer</strong> and then <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b29820275553">SQL Insights</strong>.</span><p><p id="taurusdb_03_0162__en-us_topic_0000001882727628_p1890883303718">Click <span><img id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_image105251650121016" src="en-us_image_0000002527290701.png"></span> next to <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b716195015349">Collect All Query Logs</strong>.</p>
|
||||||
|
<p id="taurusdb_03_0162__en-us_topic_0000001882727628_p487513412719">To disable this function, click <strong id="taurusdb_03_0162__b363042316145">Log Settings</strong> in the upper right corner, toggle off the <strong id="taurusdb_03_0162__b3630523121416">Collect All Query Logs</strong> switch, and click <strong id="taurusdb_03_0162__b7630192316145">OK</strong>.</p>
|
||||||
|
</p></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_li20197165293712"><span>Click <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b2272134693220">Create Task</strong>.</span><p><p id="taurusdb_03_0162__p1797284161120"></p>
|
||||||
|
</p></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li9952753184711"><span>On the displayed page, set <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b2023773593314">Time Range</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b655232203412">Synchronization to Other Instances</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b126104019347">Username</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b1698444213344">Keyword</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b121118467344">Database</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b1097624815341">Thread ID</strong>, <strong id="taurusdb_03_0162__b16699943135613">Transaction ID</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b8767183663415">Dimension</strong>, <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b549065233411">SQL Type</strong>, and <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b6874205511342">Execution Status</strong>.</span><p><p id="taurusdb_03_0162__en-us_topic_0000001882727628_p1993165617315">You can set <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b167514811513">Dimension</strong> to <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b14459481507">Instance</strong> or <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b1094635013501">Node</strong>. When <strong id="taurusdb_03_0162__en-us_topic_0000001882727628_b441851785110">Node</strong> is selected, you can view the SQL logs of deleted nodes.</p>
|
||||||
|
</p></li><li id="taurusdb_03_0162__en-us_topic_0000001882727628_en-us_topic_0000001615334916_en-us_topic_0000001372889673_li103386131368"><span>Click <span class="uicontrol" id="taurusdb_03_0162__en-us_topic_0000001882727628_uicontrol189432186443"><b>OK</b></span>.</span></li><li id="taurusdb_03_0162__li125831644216"><span>In the task list, view the SQL Insights task.</span><p><ul id="taurusdb_03_0162__ul394918542319"><li id="taurusdb_03_0162__li79491854833">You can click <strong id="taurusdb_03_0162__b2534163514500">Details</strong> in the <strong id="taurusdb_03_0162__b553453545019">Operation</strong> column to view the SQL Insights task details.</li><li id="taurusdb_03_0162__li17573145323618">You can click <strong id="taurusdb_03_0162__b124219451508">View Sync Tasks</strong> in the <strong id="taurusdb_03_0162__b842114595020">Operation</strong> column to view synchronization task details.</li><li id="taurusdb_03_0162__li162871312412">You can select a keyword such as <strong id="taurusdb_03_0162__b958511555503">Time Range</strong>, <strong id="taurusdb_03_0162__b12585855135014">Username</strong>, <strong id="taurusdb_03_0162__b758585514500">Keyword</strong>, or <strong id="taurusdb_03_0162__b125851655145013">Database</strong> to search for the SQL statements executed on the current instance or node.</li></ul>
|
||||||
|
<p id="taurusdb_03_0162__p0500165813517"></p>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521502465.html">SQL Analysis and Tuning</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
115
docs/taurusdb/umn/taurusdb_03_0163.html
Normal file
18
docs/taurusdb/umn/taurusdb_03_0164.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<a name="taurusdb_03_0164"></a><a name="taurusdb_03_0164"></a>
|
||||||
|
|
||||||
|
<h1 class="topictitle1">Viewing Top SQL Statements</h1>
|
||||||
|
<div id="body8662426"><div class="section" id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_section04246347547"><h4 class="sectiontitle">Scenarios</h4><p id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_p9211534195210">After <strong id="taurusdb_03_0164__b1155410147128">Collect All Query Logs</strong> is enabled, you can filter, search for, and analyze SQL statements in multiple dimensions and gain a comprehensive insight into all SQL statements. <strong id="taurusdb_03_0164__b655591431211">Top SQL</strong> helps you locate exceptions.</p>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="taurusdb_03_0164__en-us_topic_0000001882570748_section1924218573403"><h4 class="sectiontitle">Procedure</h4><ol id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_ol1314114919495"><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li20781201244718"><span>Log in to the management console.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li1178113129471"><span>Click <span><img id="taurusdb_03_0164__en-us_topic_0000002518288963_en-us_topic_0179843894_image192529212293" src="en-us_image_0000002518409421.png"></span> in the upper left corner and select a region and project.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li1878271212473"><span>Click <span><img id="taurusdb_03_0164__en-us_topic_0000002518288963_en-us_topic_0179843894_image280016113225" src="en-us_image_0000002486209558.png"></span> in the upper left corner of the page and choose <strong id="taurusdb_03_0164__en-us_topic_0000002518288963_b157244310216">Databases</strong> > <strong id="taurusdb_03_0164__en-us_topic_0000002518288963_b135721243182114">TaurusDB</strong>.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_li1426913204172"><span>On the <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b11646141783314">Instances</strong> page, click the instance name.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_li499974911328"><span>In the navigation pane, choose <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b13562150181016">DBA Assistant</strong> > <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b6563650111020">Historical Diagnosis</strong>.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_li15550224331"><span>Choose <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b2711955201012">SQL Explorer</strong> > <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b10713559105">Top SQL</strong>.</span></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_li5193822910"><span>Click <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b182371810153414">Subscribe</strong>. In the displayed dialog box, you can learn about Intelligent O&M functions and pricing.</span><p><p id="taurusdb_03_0164__en-us_topic_0000001882570748_p7551837183916"></p>
|
||||||
|
</p></li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_en-us_topic_0000001373012989_li17785172615213"><span>View the top SQL statements of the DB instance.</span><p><div class="p" id="taurusdb_03_0164__en-us_topic_0000001882570748_p1311552171514"><ul id="taurusdb_03_0164__en-us_topic_0000001882570748_ul34181953152710"><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li816414932811">View execution durations of the top SQL statements in the last 1 hour, last 3 hours, last 6 hours, last 12 hours, or a custom time period (no longer than one day).</li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li167355922716">Click a point in time or drag to select a time period to view the SQL statistics of a SQL template.</li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li12419353112711">Click <span><img id="taurusdb_03_0164__en-us_topic_0000001882570748_image1626614277277" src="en-us_image_0000002495130974.png"></span> to export information about all top SQL templates in the list. To use this export function, subscribe to Intelligent O&M.</li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li184191553142717">Locate a SQL template and click <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b750132219578">Details</strong> to view the total execution times, average rows scanned, average execution duration, and the like.</li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li14848341564">Locate a SQL template and click <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b6197195209">SQL Throttling</strong> in the <strong id="taurusdb_03_0164__en-us_topic_0000001882570748_b13038111010">Operation</strong> column to add a SQL throttling rule. For details, see <a href="taurusdb_03_0163.html">Configuring SQL Throttling</a>.</li><li id="taurusdb_03_0164__en-us_topic_0000001882570748_li48849310316">Select <span class="uicontrol" id="taurusdb_03_0164__en-us_topic_0000001882570748_uicontrol1692965913282"><b>Comparison by Date</b></span> and select dates and a time range to view the top SQL statements in the time range on different days.<p id="taurusdb_03_0164__en-us_topic_0000001882570748_p829864742814"></p>
|
||||||
|
</li></ul>
|
||||||
|
</div>
|
||||||
|
</p></li></ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="familylinks">
|
||||||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002521502465.html">SQL Analysis and Tuning</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||