更新时间:2023-09-26 GMT+08:00

评分规则

本章节主要介绍数据管理服务提供的巡检评分功能的评分规则。

数据管理服务系统会根据评分规则对实例的运行情况进行分数扣除,您可以在控制台上查看得分,关于如何查看,详情请参见巡检评分

评分规则表

表1 RDS for MySQL实例的评分规则表

扣分项

含义

扣分子项

条件

分数计算规则

内存使用率(memUsage)

一天的平均内存使用率。

严重事件

memUsage>90%

min[3 + (memUsage-0.9)*50, 10]

警告事件

80%<=memUsage<=90%

1+(memUsage-0.8)*20

CPU使用率(cpuUsage)

一天的CPU平均使用率。

说明:

多核CPU需要换算为单核进行计算。

严重事件

cpuUsage>=80%

min[3+(cpuUsage-0.8)*30,10]

警告事件

70%<=cpuUsage<=80%

1+(cpuUsage-0.7)*20

空间使用率(spaceUsage)

(已使用空间的平均值/总空间)*100%。

严重事件

spaceUsage > 90%

min[3+(spaceUsage-0.9)*40,10]

警告事件

70%<=spaceUsage<=90%

1+(spaceUsage-0.7)*20

连接使用率(connectionRate)

一天内连接数的平均值/最大允许的连接数 。

严重事件

connectionRate>80%

3

警告事件

70%<=connectionRate<=80%

1

IOPS使用率(iopsUsage)

(一天内IOPS的平均值/最大允许IOPS值)*100%。

严重事件

iopsUsage>90%

5

警告事件

70%<iopsUsage<90%

3

活跃会话(threadRunning)

一天内产生的活跃会话的个数。

严重事件

threadRunning>min(4*cpuCores+8,96)

9

警告事件

threadRunning>min(2*cpuCores+8,64)

3

慢SQL数量(slowSqlCount)

一天内产生的慢SQL的总条数。

严重事件

0<slowSqlCount<100

1+(slowSqlCount-10)/30

警告事件

100<=slowSqlCount<500

4+(slowSqlCount-100)/30

优化事件

0<slowSqlCount<100

1+(slowSqlCount-10)/30