All Products
Search
Document Center

Database Autonomy Service:Scoring rules

Last Updated:Mar 28, 2026

Database Autonomy Service (DAS) scores the health of your database instances on a 100-point scale. Points are deducted when specific conditions are met. This topic describes the scoring items, deduction conditions, and formulas used by the inspection and scoring feature.

Usage notes

  • To view inspection and scoring results, enable the inspection and scoring feature first. For more information, see Inspection and scoring.

  • View scores for each instance in the console. For more information, see Inspection and scoring.

Scoring rules

ApsaraDB RDS for MySQL, self-managed MySQL, and PolarDB for MySQL

Resource utilization

ItemDescriptionApplies toSub-itemConditionDeducted points
CPU utilization (cpuUsage)Average CPU utilization during a day. For multi-core instances, the system calculates the utilization of each core and then averages the results.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajor70% ≤ cpuUsage ≤ 80%1 + (cpuUsage − 0.7) × 20
CPU utilization (cpuUsage)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticalcpuUsage ≥ 80%min[3 + (cpuUsage − 0.8) × 30, 10]
Memory usage (memUsage)Average memory usage during a day.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajor80% ≤ memUsage ≤ 90%1 + (memUsage − 0.8) × 20
Memory usage (memUsage)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticalmemUsage > 90%min[(memUsage − 0.9) × 50, 10]
Space usageStorage usage = Average used storage during a day / Total storage × 100%ApsaraDB RDS for MySQL, PolarDB for MySQLAvailable daysavailableDays ≤ 3015 − availableDays/3
Connection usage (connectionRate)Connection usage = Average number of connections during a day / Maximum number of connections allowed × 100%ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajor70% ≤ connectionRate ≤ 80%1
Connection usage (connectionRate)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticalconnectionRate > 80%3
IOPS usage (iopsUsage)IOPS usage = Average IOPS during a day / Maximum IOPS allowed × 100%ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajor70% < iopsUsage < 90%3
IOPS usage (iopsUsage)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticaliopsUsage > 90%5

Performance

ItemDescriptionApplies toSub-itemConditionDeducted points
Active sessions (threadRunning)Number of active sessions generated in one day.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajorthreadRunning > min(2 × cpuCores + 8, 64)3
Active sessions (threadRunning)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticalthreadRunning > min(4 × cpuCores + 8, 96)9
Slow SQL statements (slowSqlCount)Number of slow SQL statements generated in one day. Click the number to view the five most frequently executed slow SQL statements.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMinor0 < slowSqlCount < 1001 + (slowSqlCount − 10)/30
Slow SQL statements (slowSqlCount)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMajor100 ≤ slowSqlCount < 5004 + (slowSqlCount − 100)/30
Slow SQL statements (slowSqlCount)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLCriticalslowSqlCount ≥ 500min[18 + (slowSqlCount − 50)/30, 30]
Large tablesNumber of tables that occupy more than 50 GB of space, including fragments.ApsaraDB RDS for MySQL, self-managed MySQLbigTableCount > 0min(bigTableCount, 15)

Security

ItemDescriptionApplies toSub-itemConditionDeducted points
SQL security audit (sqlInjectionCount)Number of high-risk SQL statements and SQL injection attacks detected in one day.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLHigh-risk SQL statementsriskSqlCount > 0min(riskSqlCount, 5)
SQL security audit (sqlInjectionCount)ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLSQL injectionsqlInjectionCount > 0min(sqlInjectionCount, 5)

Availability

ItemDescriptionApplies toSub-itemConditionDeducted points
DeadlockWhether a deadlock occurred during a day.ApsaraDB RDS for MySQL, self-managed MySQL, PolarDB for MySQLMinorA deadlock occurred3

Redis

Resource utilization

ItemDescriptionApplies toSub-itemConditionDeducted points
CPU utilization (cpuUsage)Average CPU utilization during a day. For multi-core instances, the system calculates the utilization of each core and then averages the results.RedisMajor70% ≤ cpuUsage ≤ 80%1 + (cpuUsage − 0.7) × 20
CPU utilization (cpuUsage)RedisCriticalcpuUsage ≥ 80%min[3 + (cpuUsage − 0.8) × 30, 10]
Memory usage (memUsage)Average memory usage during a day.RedisMajor80% ≤ memUsage ≤ 90%1 + (memUsage − 0.8) × 20
Memory usage (memUsage)RedisCriticalmemUsage > 90%min[(memUsage − 0.9) × 50, 10]
Connection usage (connectionRate)Connection usage = Average number of connections during a day / Maximum number of connections allowed × 100%RedisMajor70% ≤ connectionRate ≤ 80%1
Connection usage (connectionRate)RedisCriticalconnectionRate > 80%3
Traffic usage (FlowRate)Traffic usage = Average traffic during a day / Maximum traffic allowed × 100%. Both inbound and outbound traffic count.RedisMajor80% ≤ FlowRate ≤ 85%1
Traffic usage (FlowRate)RedisCriticalFlowRate > 85%3

Performance

ItemDescriptionApplies toSub-itemConditionDeducted points
Slow SQL statements (slowSqlCount)Total number of slow SQL statements generated in one day. Click the number to view the five most frequently executed slow SQL statements.RedisMinor0 < slowSqlCount < 1001 + (slowSqlCount − 10)/30
Slow SQL statements (slowSqlCount)RedisMajor100 ≤ slowSqlCount < 5004 + (slowSqlCount − 100)/30
Slow SQL statements (slowSqlCount)RedisCriticalslowSqlCount ≥ 500min[18 + (slowSqlCount − 50)/30, 30]

Availability

ItemDescriptionApplies toSub-itemConditionDeducted points
Hot keys (HotKey)Hot key information is detected.RedisMinorHot keys detected3
Memory fragmentation ratio (HighMemoryFragment)mem_fragmentation_ratio = used_memory_rss / used_memory, where used_memory_rss is the physical memory the operating system allocates to Redis (including memory fragments), and used_memory is the memory Redis requests to store data. For more information, see Memory fragmentation.RedisMinorHighMemoryFragment > 1.5min(HighMemoryFragment × 2, 5)