AWS RDS Performance Insights 不显示 SQL 查询

kal*_*deo 6 amazon-web-services amazon-rds

我在 AWS RDS 中的现有 SQL Server 数据库 (MySql 5.6.46) 上启用了 Performance Insights。\n但是,它仍然显示 0 个会话,并且 \xe2\x80\x9c 在所选时间范围内没有活动会话\xe2\x80\x9d,无论我从顶部列表中选择多长时间。

\n\n

是否需要满足某些条件才能将我的查询记录在 Performance Insights 中?有什么标准?我该如何解决这个问题?

\n

小智 8

我创建了 AWS 支持案例,AWS 工程师向我解释:

不幸的是,这是我们端的一个已知问题,当在与引擎版本升级相同的 API 调用中发出 Performance Insights 时,它不会被启用,因为 RDS 在执行作为同一 API 调用的一部分提交的多个请求时遵循优先级- 例如在本例中,请求启用 Performance Insights 并请求将实例升级到 11.1 版本。首先评估 Performance Insights 调用,然后进行引擎升级。这意味着,当考虑 Performance Insights 请求时,实例仍处于以前的不兼容版本,因此请求未成功通过。

解决此问题的解决方法是禁用 Performance Insights,等待几分钟,然后重新启用 Performance Insights。

启用/禁用 Performance Insights 不会导致中断/停机。Performance Insights 代理旨在远离数据库工作负载。当 Performance Insights 检测到负载过重或资源耗尽时,它会停止收集数据,但前提是安全时才这样做。