Diagnostics

更新时间:
复制 MD 格式

When your database instance encounters a failure or performance issue, use the Diagnostics feature to quickly analyze its performance over a specified time period. This provides a comprehensive overview of the database's health and helps you quickly identify the root cause of anomalies.

Prerequisites

  • The target database engine is one of the following:

    • ApsaraDB RDS for MySQL

    • ApsaraDB MyBase for MySQL

    • self-managed MySQL database

  • The target database instance has been added to Database Autonomy Service (DAS). For more information, see Add a database instance to DAS.

Procedure

  1. Log on to the DAS console.

  2. In the navigation pane on the left, click Intelligent O&M Center > Instance Monitoring .

  3. Find the target instance and click the instance ID to open the instance details page.

  4. In the left-side navigation pane, click Diagnostics.

  5. On the Diagnostics page, you can create a diagnostic task and view historical diagnostic reports.

    To switch between versions, click Go to Old Version or Go to New Version.

FAQ

  • Q: In Diagnostics, how are thread usage, connection usage, and maximum number of threads calculated for a session?

    A: For ApsaraDB RDS for MySQL, the formulas are as follows:

    • thread usage = number of active threads / maximum number of threads

    • connection usage = current number of connections / maximum number of connections allowed by the instance type

    • maximum number of threads = thread_pool_size * (thread_pool_oversubscribe + 1)

  • Q: Why does thread usage sometimes exceed 100%?

    A: According to the formula, thread usage exceeds 100% when the number of active threads surpasses the maximum number of threads. The thread pool for ApsaraDB RDS for MySQL does not strictly limit the number of active threads.

Learn more

For a detailed technical overview of automatic SQL diagnosis, see Cost-based SQL diagnostic engine.