Exception Diagnosis

Last updated: 2020-12-15 10:51:22

    The exception diagnosis feature provides you with real-time performance monitoring, health checks, and failure diagnosis and optimization, so that you can intuitively know the real-time operation status of database instances, locate newly appeared performance exceptions in real time, and optimize the system based on the optimization suggestions. Exception diagnosis provides real-time and historical view modes.
    This document describes how to use the exception diagnosis feature to diagnose and optimize real-time/historical exceptions in databases.

    Note:

    Currently, exception diagnosis is supported only for TencentDB for MySQL (excluding the Basic Edition) and TencentDB for CynosDB (compatible with MySQL).

    Log in to the DBbrain console and select Performance Optimization on the left sidebar. On the displayed page, select a database type and an instance at the top, and select the Exception Diagnosis tab.

    Real-Time/Historical Monitoring

    The exception diagnosis page displays CPU utilization, memory utilization, disk utilization, inbound/outbound traffic, and health scores. To view details on disk utilization, click Details in the top-right corner. The AI-based health scores can reflect the actual status of your databases.

    Real-Time/Historical Diagnosis

    • The Real-Time/Historical Diagnosis graph displays the real-time/historical information about the number of running threads, CPU utilization, and diagnosis events of the instance.
    • The Diagnosis Prompt list displays the overview information of diagnosis event history, including health levels (healthy, notice, warning, severe, or fatal), start time, diagnosed items, and duration. DBbrain performs health checks on the instance once every ten minutes.

    Viewing diagnoses details

    1. Log in to the DBbrain console and select Performance Optimization on the left sidebar. On the displayed page, select a database type and an instance at the top, and select the Exception Diagnosis tab.

    2. In the Real-Time Diagnosis graph, hover the cursor over on a point in time and zoom in and out the graph using the mouse wheel. In the Historical Diagnosis graph, select a period of time at the top, hover the cursor over on a point in time and zoom in and out the graph using the mouse wheel. You can click View Details in the graph or click View in the Diagnosis Prompt list to enter the diagnosis details page.

    3. Click a diagnosis event in the Real-Time/Historical Diagnosis graph, and the event details will be displayed on the pop-up diagnosis details page.

      • Event Details: include the diagnosis item name, start and end times, risk level, duration, and overview.
      • Description: includes symptom snapshots and performance trends of the exception event or health check event.
      • Intelligent Analysis: analyzes the root cause of the performance exception to help you locate the specific operation.
      • Optimization Advice: provides optimization suggestions, including but not limited to SQL optimization (index and rewrite), resource configuration optimization, and parameter fine-tuning.

        Click Optimization Comparison on the Optimization Advice tab. In the pop-up window, you can view SQL execution plans, index advice, table structures, and comparison of costs before and after SQL optimization.
        The costs of optimized SQL statements are estimated based on the analysis of the statistics of database tables related to the statements, the OPTIMIZER_SWITCH configuration, and the index selectivity. A chart is used to visually show the decrease in the costs of optimized SQL statements. You can also compare the execution plans before and after the SQL optimization to further verify the optimization results.

    Ignoring/unignoring an alarm

    1. Log in to the DBbrain console and select Performance Optimization on the left sidebar. On the displayed page, select a database type and an instance at the top, and select the Exception Diagnosis tab.
    2. In the Diagnosis Prompt list on the right of theReal-Time/Historical Diagnosis graph, click Ignore or Unignore in the line of an alarm to ignore or unignore it and other alarms generated by the same root cause.
      • Click Ignore to ignore an alarm. After the alarm is ignored, other diagnosis item alarms of the instance generated by the same root cause will also be ignored. Ignored alarms will be gray.

        Note:

        Only diagnosis item alarms that are not generated by health checks can be ignored or unignored.

      • Click unignore to unignore an ignored alarm. After the alarm is unignored, other diagnosis item alarms of the instance generated by the same root cause will also be unignored. Ignored alarms will not be displayed in the Diagnosis Prompt list by default.

    Real-Time/Historical SQL

    • The Real-Time/Historical SQL graph displays the overall information and distribution of the number of requests made to the instance, including the trends of the total number of requests and the SELECT, REPLACE, INSERT, DELETE, and UPDATE statements.
    • The Real-Time/Historical Slow SQL graph displays the trends of slow SQL statements (slow logs) and CPU utilization. You can click View Details on the top-right corner to access the Slow SQL Analysis page and view analysis details.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help