In the autonomy center of Database Autonomy Service (DAS), you can query the events that occur within a specified time range. The events are categorized into abnormal events, optimization events, auto scaling events, and other events. DAS monitors the core metrics of a database instance to detect exceptions. If an exception is detected, DAS analyzes sessions, SQL statements, and the instance capacity to identify the cause. Then, DAS provides suggestions to optimize performance or mitigate the loss. You can authorize DAS to automatically optimize performance or mitigate the loss.

Prerequisites

A database instance of one of the following types is connected to DAS:
  • ApsaraDB RDS for MySQL
  • ApsaraDB RDS for PostgreSQL
  • PolarDB for MySQL
  • ApsaraDB for Redis
Note For information about how to connect an Alibaba Cloud database instance to DAS, see Connect an Alibaba Cloud database instance to DAS.

Overview

  • Anomaly detection

    DAS detects exceptions 24/7 based on machine learning and fine-grained monitoring data. This detection mechanism allows DAS to detect database exceptions faster than traditional alerting methods that are based on thresholds.

    Item Traditional solution DAS
    Method Rule- or threshold-based AI-based
    Monitored objects Metrics A wide range of objects, such as metrics, SQL statements, logs, locks, and O&M events
    Latency From 5 minutes to one or more days Quasi-real-time
    Detection driven by Faults Exceptions
    Periodic detection Not supported Automatic and periodic
    Adaptability Not supported Adaptive to services that have different characteristics
    Prediction Not supported Supported
  • Automatic SQL throttling
    Traffic-related exceptions may occur in a database, such as cache penetration, abnormal resource consumption of SQL statements in a released application, or a spike in the traffic from a specific application. In these scenarios, the database can start to terminate sessions. To maintain database stability, you can use database O&M solutions. For example, you can restart the database instance or switch to a secondary instance. However, these solutions may not be effective. The autonomy center of DAS can automatically detect exceptions, identify the SQL statements that need to be throttled, and then perform throttling on the SQL statements.
  • Exception snapshots
    After DAS detects an exception in a database, DAS starts to check the database engine to identify the root cause. If no root cause is found, DAS creates a snapshot of the database for further analysis.
  • SQL optimization

    After you enable the autonomy center service, DAS automatically checks high-risk SQL statements and generates detailed analysis and optimization suggestions.

    • To identify and optimize high-risk SQL statements,we recommend that you enable the SQL Explorer feature for a database. Otherwise, the SQL optimization feature can identify and optimize only slow SQL queries.
    • To generate effective optimization suggestions for SQL statements, DAS samples and analyzes fields in the conditions of related SQL statements within the O&M time window of the database.

Procedure

  1. Log on to the DAS console.
  2. In the left-side navigation pane, click Instance Monitoring.
  3. On the page that appears, click the ID of the database instance that you want to manage. The instance details page appears.
  4. In the left-side navigation pane, click Autonomy Center.
  5. In the upper-right corner of the Autonomy Center page, click Autonomy Service Settings.
    Autonomy Service Settings
  6. On the Autonomous Function Settings tab of the Autonomous Function Management panel, enable the autonomy service and click OK.

FAQ

Q: Why are specific features not displayed on the Autonomy Service Settings tab of the Settings dialog box? gz01

A: The specific database instance does not support the features of DAS autonomy center.

References