业务报错日志 | 问题本质 | 核心关联参数 | 推荐调优基准 |
| Too many connections | 活动连接数突破服务端硬上限 | max_connections / max_connect_errors | 根据实例规格设为 1000 - 3000 |
| Communications link failure | 空闲连接被服务端静默断开 | wait_timeout / interactive_timeout | 缩短至 600 - 1800 秒,对齐连接池 |
| Lock wait timeout exceeded | 行级排他锁长时间无法获取 | innodb_lock_wait_timeout | OLTP 建议设为 3 - 5 秒(默认50秒过长) |
| Deadlock found when trying to get lock | 两个事务交叉循环争抢行锁 | innodb_deadlock_detect | 保持 ON(极端超高并发热点写可评估OFF) |