aws rds 连接,它们是什么以及如何减少连接数

aws rds connects, what are they and how can I reduce the number of connection

在我的 aws maria db rds 实例上,我有很多连接......然后数据库再次无法访问。

在这种情况下只有 77 个连接。但通常有超过 150 个...

我运行一个包含4个微服务的微服务构造,每个微服务都是一个用scala编写的playframework应用程序。

谢谢

他们确实是连接,仔细检查这个登录到 RDS 实例和 运行 这个:

SHOW PROCESSLIST;

可能发生的情况是您的应用程序在使用后没有关闭连接。

另请检查此答案 可能有助于为 timeout 变量设置更好的值:

set global wait_timeout=3;
set global interactive_timeout=3;