Database Autonomy Service (DAS) provides the inspection and scoring feature for ApsaraDB RDS for MySQL. You can use the feature to inspect and score all RDS instances on a daily basis. DAS allows you to specify RDS instances and inspection periods and manually initiate inspection and scoring. This helps you understand the status of ApsaraDB RDS for MySQL instances.
Prerequisites
DAS provides the inspection and scoring feature only for the following types of RDS
instances:
- MySQL 8.0 on RDS High-availability or Enterprise Edition
- MySQL 5.7 on RDS High-availability or Enterprise Edition
- MySQL 5.6 on RDS High-availability Edition
- MySQL 5.5 on RDS High-availability Edition
Note DAS provides the inspection and scoring feature for ApsaraDB RDS for MySQL from May
20, 2022.
Procedure
Scoring rules
Deduction item | Description | Sub-item | Condition | Deducted point |
---|---|---|---|---|
CPU Utilization (cpuUsage) | The average daily CPU utilization. If an RDS instance has multiple CPU cores, the system calculates the CPU utilization of each core and then calculates the average CPU utilization of all cores. | Warning | 70% ≤ cpuUsage ≤ 80% | 1 + (cpuUsage - 0.7) × 20 |
Critical | cpuUsage ≥ 80% | min[3 + (cpuUsage - 0.8) × 30,10] | ||
Memory Usage (memUsage) | The average daily memory usage. | Warning | 80% ≤ memUsage ≤ 90% | 1 - (memUsage - 0.8) × 20 |
Critical | memUsage > 0.9 | min[(memUsage - 0.9) × 50,10] | ||
Space Usage | The storage usage is calculated by using the following formula: Storage usage = Average used storage during a day/Total storage × 100% | Available days | availableDays ≤ 30 | 15 - availableDays/3 |
Number of large tables | bigTableCount > 0 | min(bigTableCount,15) | ||
Connection Usage (connectionRate) | The connection usage is calculated by using the following formula: Connection usage = Average number of connections during a day/Maximum number of connections allowed at a point in time × 100% | Warning | 70% ≤ connectionRate ≤ 80% | 1 |
Critical | connectionRate > 80% | 3 | ||
IOPS Usage (iopsUsage) | The IOPS usage is calculated by using the following formula: IOPS usage = Average IOPS during a day/Maximum IOPS allowed × 100% | Warning | 70% < iopsUsage < 90% | 3 |
Critical | iopsUsage > 90% | 5 | ||
Active Sessions (threadRunning) | The number of active sessions generated in a day. | Warning | threadRunning > min(2 × cpuCores + 8,64) | 3 |
Critical | threadRunning > min(4 × cpuCores + 8,96) | 9 | ||
Slow SQL Statements (slowSqlCount) | The number of SQL statements that cause slow queries in a day.
Note You can click the number to view the five slow SQL statements that are most frequently
executed.
|
Detected | 0 < slowSqlCount < 100 | 1 + (slowSqlCount - 10)/30 |
Warning | 100 ≤ slowSqlCount < 500 | 4 + (slowSqlCount - 100)/30 | ||
Critical | slowSqlCount ≥ 500 | min[18 + (slowSqlCount-50)/30,30)] | ||
SQL security audit (sqlInjectionCount) | The number of high-risk SQL statements and the number of SQL injection attacks. | High-risk SQL statements | riskSqlCount > 0 | min(riskSqlCount,5) |
SQL injection attacks | sqlInjectionCount > 0 | Min(sqlInjectionCount,5) | ||
Deadlock | Indicates whether a deadlock occurs during a day. | Detected | Detected | 3 |