AWS aurora(Mysql,无服务器)在 5 分钟后断开连接

时间:2021-05-11 14:48:32

标签: mysql amazon-web-services exception aurora

我的应用程序创建了多个 (6-7) 个到服务器的连接。大约 5 分钟后,将断开 1 个连接。我真的想不通为什么。除了设置为 60 的 aurora_fwd_master_idle_timeout 之外,其他配置保持其默认值。例如,wait_timeout 值默认为 8 小时,因此它应该足够长。 enter image description here 如果我将多个连接限制为 3-4,有时它会起作用,有时它不会。 当它不起作用时,详细错误如下:

MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during data read. 
---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. 
---> System.IO.IOException: The read operation failed, see inner exception. 
---> System.TimeoutException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 
---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 
---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

对可能导致这种情况的原因有任何想法吗?

0 个答案:

没有答案