
生产环境出现慢 SQL 需要排查,开启 Performance Insights 时报错InvalidParameterCombination,本文记录完整排查过程和解决方案。前言Performance Insights 是 AWS RDS/Aurora 内置的数据库性能分析工具,可以可视化 DB Load、定位慢 SQL、分析等待事件。当你的 Aurora MySQL 出现性能问题时,它是首选排查工具。但开启时可能遇到一个坑:并非所有实例类都支持 Performance Insights,而且 AWS 官方文档和实际 API 行为存在不一致。本文基于 Aurora MySQL 3.09.0(MySQL 8.0 兼容)的实际踩坑经验,记录从报错到解决的全过程。一、问题现象尝试对 Aurora MySQL 实例开启 Performance Insights:aws rds modify-db-instance \ --db-instance-identifier my-aurora-instance \ --enable-performance-insights \ --performance-insights-retention-period 7 \ --region us-east-1 \ --apply-immediately报