In the autonomy center of Database Autonomy Service (DAS), you can query events that occurred within the specified time range. The events include exception 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 checks sessions, SQL statements, and the capacity of the database to identify the cause. Then, DAS provides suggestions on how to optimize performance or mitigate losses. You can also authorize DAS to automatically optimize performance or mitigate losses.
Prerequisites
- ApsaraDB RDS for MySQL
- ApsaraDB MyBase for MySQL
- ApsaraDB RDS for PostgreSQL
- ApsaraDB RDS for SQL Server
- PolarDB for MySQL
- ApsaraDB for Redis
Overview
- Exception 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-based or threshold-based AI-based Monitored objects Metrics A wide range of objects, such as metrics, SQL statements, logs, locks, and O&M events Low latency From 5 minutes to one or more days Quasi-real-time Detection method Fault-driven Exception-driven Periodic detection Not supported Automatic and periodic Adaptability Not supported Adaptive to services that have different characteristics Prediction Not supported Supported - Automatic SQL throttlingTraffic-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 snapshotsAfter 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.
- We recommend that you enable the SQL Explorer feature. In this way, DAS can identify and optimize all high-risk SQL statements in your database instead of 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
- Log on to the DAS console.
- In the left-side navigation pane, click Instance Monitoring.
- On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.
- In the left-side navigation pane, click Autonomy Center.
- On the Autonomy Center page, click Autonomy Service Settings in the upper-right corner.
- On the Autonomous Function Settings tab of the panel, turn on the switch and click OK.
FAQ

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