Overview of Problem Diagnosis and SQL Analysis
DBA Assistant provides visualized database O&M and intelligent diagnosis for developers and database administrators (DBAs), making database O&M easy and efficient. By analyzing alarms, resources, health data, performance metrics, and storage usage, it helps users quickly locate faults and keep track of instance status.
To use DBA Assistant on the RDS console, IAM users must have the RDS FullAccess, DAS FullAccess (or DAS Administrator), and CES FullAccess permissions. To grant these permissions, see Using IAM Roles or Policies to Grant Access to RDS.
Video
Scenarios
- Setting a slow session threshold can help you quickly identify abnormal sessions and kill the sessions when an exception occurs in your instance, so that your instance can recover quickly and ensure database availability.
- If your DB instance is unstable due to a large number of concurrent SQL requests from new services, you can set SQL throttling rules for SQL statements to limit concurrent SQL statements and ensure instance stability.
- If your instance storage is full, you can learn about the storage usage and disk space distribution on the Storage Analysis page. You can enable storage autoscaling. When the available storage of your instance drops to the threshold, autoscaling is triggered. For details, see Configuring Storage Autoscaling.
- You can configure auto throttling to limit active connections in high burst traffic or abnormal read/write scenarios to ensure the availability of core workloads.
Functions
Table 1 lists the functions supported by DBA Assistant.
| Function | Description | Reference |
|---|---|---|
| Sessions | It provides snapshots of current database sessions, with support for sorting and filtering. You can quickly filter and identify custom slow SQL sessions, active sessions, and other session types by user, client host, or database. Killing sessions and SQL throttling help restore instances in emergencies and maintain database availability. | |
| Performance | It displays key metrics of your instance and provides metric comparison between different days. You can keep track of metric changes and detect exceptions in a timely manner. Monitoring by Seconds helps accurately locate faults. | |
| Storage Analysis | Storage occupied by data and logs and historical changes of storage usage are important for database performance. DBA Assistant shows the storage summary and storage space usages of your instance. It estimates the available days of your storage based on historical data and intelligent algorithms, helping you scale up storage before it runs out. Autoscaling, Intelligent Tablespace Diagnosis, Top 50 Databases, and Top 50 Tables are also available on this page. | |
| Locks & Transactions | It analyzes metadata locks and InnoDB locks. You can manage blocked transactions using metadata lock views and InnoDB lock topologies to reduce lock conflicts. | |
| Historical Transactions | It analyzes and identifies large transactions and the transactions that have been there for a long time without being committed in the database. | |
| Slow Query Logs | It displays slow queries within a specified time period. You can sort top slow queries by user or client IP address, view slow query statistics, and sort them by specific dimensions to identify the sources of slow SQL queries. | |
| SQL Explorer | After Collect All Query Logs is enabled, you can filter, search for, and analyze SQL statements in multiple dimensions and gain a comprehensive insight into all SQL statements. Top SQL helps you locate exceptions. | |
| SQL Throttling | For scenarios where SQL statements in newly launched workloads cannot be optimized in time or sudden traffic spikes cause resource bottlenecks (for example, 100% CPU utilization), SQL throttling helps the application side control traffic in a timely manner by limiting the concurrency of SQL statements that match predefined rules, ensuring the stable operation of core workloads. | |
| Auto Throttling | This function automatically detects database anomalies, such as high CPU utilization and excessive active sessions, and throttles traffic based on workload priorities to ensure the stable operation of core workloads. You can configure throttling by database or user based on your workload requirements. By configuring non-core databases or workloads as throttling targets, you can prevent core workloads from being affected. | |
| Daily Reports | The Daily Reports page provides overall information about your instance status of the previous day, including slow SQL analysis, all SQL analysis, and performance & storage analysis. You can download and subscribe to analysis reports. A daily diagnosis is recommended. | |
| Anomaly Snapshots | This function intelligently detects instance anomalies and records information about session, lock, and transaction snapshots to facilitate subsequent fault locating. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot