如何解决在 Amazon Aurora 数据库实例上激活 Performance Insights 时出现的常见错误?

1 分钟阅读
0

我有一个 Amazon Aurora 数据库实例,我想为实例使用 Performance Insights。如何解决激活此功能时收到的常见错误?

简短描述

在为 Amazon Aurora 激活 Performance Insights 之前,请确保您运行的是受支持的 Aurora 版本和数据库实例类。要使用此功能,您必须运行以下 Amazon Aurora MySQL 兼容版版本:

  • 2.04.2 及更高的 2.x 版本(与 MySQL 5.7 兼容)
  • 1.17.3 及更高的 1.x 版本(与 MySQL 5.6 兼容)

Performance Insights 与所有 Amazon Aurora PostgreSQL 兼容版版本兼容。

注意:对于允许并行查询的 Aurora 数据库集群,Amazon Aurora MySQL 兼容版的最低版本为 2.09.0 和 1.23.0。有关更多信息,请参阅 Amazon Aurora 数据库引擎支持 Performance Insights

要使用 Performance Insights,请在数据库实例上将其激活。然后,按照本文中的问题排查步骤来解决使用此功能时出现的常见错误。

解决方法

Performance Insights 控制面板没有显示性能架构的详细等待事件

如果您已在参数组中手动启用 performance_schema 参数,请重置该参数。然后,修改实例以开启 Performance Insights 然后关闭

Performance Insights 会自动管理下表中的参数。您无法使用自定义参数组配置此表。在集群上使用 performance_schema=1 开启 Performance Insights,可能会导致数据点缺失。

  • performance_schema:1(源参数设置为 engine-default)
  • performance-schema-consumer-events-waits-current:ON(开)
  • performance-schema-instrument: wait/% = ON
  • performance_schema_consumer_global_instrumentation : ON
  • performance_schema_consumer_thread_instrumentation = ON

我无法在性能详情控制面板中看到我的整个查询

Amazon Aurora 的 Performance Insights 控制面板可能无法显示完整的查询。这可能是因为该功能目前对于 Aurora PostgreSQL 兼容的限制为 500 个字符,对 Aurora MySQL 兼容的限制为 1024 个字符。有关更多信息,请参阅 Amazon Relational Database Service (Amazon RDS) 引擎的文本大小限制

**注意:**开启或关闭 Performance Insights 不会导致任何停机、重启或故障转移问题。


相关信息

Amazon Aurora 数据库引擎支持 Performance Insights

启用和禁用 Performance Insights

AWS 官方
AWS 官方已更新 2 年前