Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions umn/source/change_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Change History
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Released On | Description |
+===================================+===============================================================================================================================================+
| 2025-12-01 | Added :ref:`DBA Assistant <en-us_topic_0000002521462465>`. |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| 2025-08-29 | Added the following content to :ref:`Configuring Displayed Metrics <gaussdb_03_0085>`: |
| | |
| | - :ref:`Namespace <gaussdb_03_0085__section749614207529>` |
Expand Down
20 changes: 20 additions & 0 deletions umn/source/working_with_taurusdb/dba_assistant/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:original_name: en-us_topic_0000002521462465.html

.. _en-us_topic_0000002521462465:

DBA Assistant
=============

- :ref:`What Is DBA Assistant? <en-us_topic_0000002489342648>`
- :ref:`Performance Monitoring <en-us_topic_0000002521502461>`
- :ref:`Problem Diagnosis <en-us_topic_0000002489342650>`
- :ref:`SQL Analysis and Tuning <en-us_topic_0000002521502465>`

.. toctree::
:maxdepth: 1
:hidden:

what_is_dba_assistant
performance_monitoring/index
problem_diagnosis/index
sql_analysis_and_tuning/index
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:original_name: en-us_topic_0000002521502461.html

.. _en-us_topic_0000002521502461:

Performance Monitoring
======================

- :ref:`Viewing the Overall Status of a DB Instance <en-us_topic_0000002489182676>`
- :ref:`Viewing Real-Time Performance Metrics <taurusdb_03_0158>`

.. toctree::
:maxdepth: 1
:hidden:

viewing_the_overall_status_of_a_db_instance
viewing_real-time_performance_metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
:original_name: taurusdb_03_0158.html

.. _taurusdb_03_0158:

Viewing Real-Time Performance Metrics
=====================================

TaurusDB 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.

Viewing Real-Time Metrics
-------------------------

#. Log in to the management console.

#. Click |image1| in the upper left corner and select a region and project.

#. Click |image2| in the upper left corner of the page and choose **Databases** > **TaurusDB**.

#. On the **Instances** page, click the instance name.

#. In the navigation pane, choose **DBA Assistant** > **Real-Time Diagnosis**.

#. Click the **Performance** tab to view the performance metrics of your DB instance.

Click **Select Metric** to add or delete performance metrics.

.. |image1| image:: /_static/images/en-us_image_0000002518409421.png
.. |image2| image:: /_static/images/en-us_image_0000002486209558.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
:original_name: en-us_topic_0000002489182676.html

.. _en-us_topic_0000002489182676:

Viewing the Overall Status of a DB Instance
===========================================

The **Dashboard** 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.

Alarms
------

#. Log in to the management console.

#. Click |image1| in the upper left corner and select a region and project.

#. Click |image2| in the upper left corner of the page and choose **Databases** > **TaurusDB**.

#. On the **Instances** page, click the instance name.

#. In the navigation pane, choose **DBA Assistant** > **Real-Time Diagnosis**.

#. On the **Dashboard** page, view instance alarms provided by Cloud Eye.

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.

Health
------

In the **Health** 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.

For abnormal metrics, click **Diagnose** to view diagnosis details and suggestions. For details, see :ref:`Table 1 <en-us_topic_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110>`.

For details about metrics, see :ref:`Viewing Monitoring Metrics <gaussdb_03_0088>`. For details about how to configure alarm rules on Cloud Eye, see :ref:`Setting Alarm Rules <gaussdb_03_0087>`.

.. _en-us_topic_0000002489182676__en-us_topic_0000002002572404_en-us_topic_0000001498704924_table10196185183110:

.. table:: **Table 1** Health diagnosis and suggestions

+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+
| Item | Exception Trigger Condition |
+===================================+=================================================================================================================+
| High vCPU utilization | Either of the following conditions is met: |
| | |
| | - After you configure alarm rules on Cloud Eye, an alarm is reported, indicating the CPU usage is high. |
| | - The CPU usage exceeds 95% for more than 2.5 minutes of a 5-minute measurement period. |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+
| Memory bottleneck | Either of the following conditions is met: |
| | |
| | - After you configure alarm rules on Cloud Eye, an alarm is reported, indicating the memory usage is high. |
| | - The memory usage exceeds 95% within a 5-minute measurement period. |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+
| High-frequency slow SQL | Either of the following conditions is met: |
| | |
| | - After you configure alarm rules on Cloud Eye, an alarm is reported, indicating there are too many slow logs. |
| | - There are more than 100 slow logs within five minutes. |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+
| Lock wait | After you configure alarm rules on Cloud Eye, any of the following alarms is reported: |
| | |
| | - Row Lock Time |
| | - InnoDB Row Locks |
| | - Row Lock Waits |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+

Compute Resource Usage
----------------------

In the **Compute Resource Usage** area, the vCPU usage and memory usage are displayed by default. The displayed values are the average values for 5-minute measurement periods.

Storage Resource Usage
----------------------

In the **Storage Resource Usage** 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.

Key Performance Metrics
-----------------------

In the **Key Performance Metrics** 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.

.. |image1| image:: /_static/images/en-us_image_0000002518409421.png
.. |image2| image:: /_static/images/en-us_image_0000002486209558.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:original_name: en-us_topic_0000002489342650.html

.. _en-us_topic_0000002489342650:

Problem Diagnosis
=================

- :ref:`Managing Real-Time Sessions <en-us_topic_0000002521502463>`
- :ref:`Viewing Anomaly Snapshots <en-us_topic_0000002521462469>`

.. toctree::
:maxdepth: 1
:hidden:

managing_real-time_sessions
viewing_anomaly_snapshots
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
:original_name: en-us_topic_0000002521502463.html

.. _en-us_topic_0000002521502463:

Managing Real-Time Sessions
===========================

Scenarios
---------

You can view current session statistics of your instance and kill abnormal sessions.

Constraints
-----------

Killing a session may cause the application to disconnect from the instance. Your application should be able to reconnect to the instance.

Setting a Slow Session Threshold
--------------------------------

#. Log in to the management console.

#. Click |image1| in the upper left corner and select a region and project.

#. Click |image2| in the upper left corner of the page and choose **Databases** > **TaurusDB**.

#. On the **Instances** page, click the instance name.

#. In the navigation pane, choose **DBA Assistant** > **Real-Time Diagnosis**.

#. Click the **Sessions** tab to view current session statistics by user, access host, and database.

#. In the session list, select the abnormal session you want to kill and click **Kill Session** to recover the database.

A maximum of 20 sessions can be killed at once.

To kill sessions automatically, see :ref:`Using Auto Kill Sessions <en-us_topic_0000002489182682>`.

.. |image1| image:: /_static/images/en-us_image_0000002518409421.png
.. |image2| image:: /_static/images/en-us_image_0000002486209558.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
:original_name: en-us_topic_0000002521462469.html

.. _en-us_topic_0000002521462469:

Viewing Anomaly Snapshots
=========================

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.

Diagnosis Item
--------------

.. _en-us_topic_0000002521462469__en-us_topic_0000002009238626_table9521791237:

.. table:: **Table 1** Diagnosis item

======================= ===================================
Item Description
======================= ===================================
Transaction uncommitted There are uncommitted transactions.
======================= ===================================

Constraints
-----------

Collecting abnormal snapshots will cause about 5% of instance performance loss.

Procedure
---------

#. Log in to the management console.

#. Click |image1| in the upper left corner and select a region and project.

#. Click |image2| in the upper left corner of the page and choose **Databases** > **TaurusDB**.

#. On the **Instances** page, click the instance name.

#. In the navigation pane, choose **DBA Assistant** > **Historical Diagnosis**.

#. Click **Anomaly Snapshots**.

#. Click |image3| on the right of **Collect Abnormal Snapshots** to enable anomaly diagnosis.

After anomaly diagnosis is enabled, if any anomaly listed in :ref:`Table 1 <en-us_topic_0000002521462469__en-us_topic_0000002009238626_table9521791237>` 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.

Click **Diagnosis Details** in the **Operation** column to view diagnosis result details and optimization suggestions.

Click the **Anomaly Snapshots** tab to view session snapshots, metadata lock snapshots, InnoDB lock snapshots, and transaction snapshots.

.. |image1| image:: /_static/images/en-us_image_0000002518409421.png
.. |image2| image:: /_static/images/en-us_image_0000002486209558.png
.. |image3| image:: /_static/images/en-us_image_0000002527170671.png
Loading
Loading