PolarDB每天都有大量的这种错误是什么原因呀?{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088255894 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812368483 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812355667 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812379232 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088259875 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088311038 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812377263 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812385325 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088297214 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088287253 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812373423 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088259708 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088291170 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812359796 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088297464 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088316194 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812400476 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088310074 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088301050 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812366471 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812357598 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 638812355655 11060","time":"2024-08-10T13:44:39+08:00"}
{"level":"error","msg":"dao.GetShopBooksGoodsFromGoodsID err:dial tcp 8.142.193.104:3306: i/o timeout 639088320095 11060","time":"2024-08-10T13:44:39+08:00"}
这些错误日志显示的是在尝试连接到数据库服务器 8.142.193.104:3306
时出现了 I/O 超时。这意味着应用程序在尝试建立与数据库的连接时未能成功完成连接。这可能是由多种因素引起的,以下是一些常见的原因及排查步骤:
检查网络连接:
ping
或 traceroute
测试应用程序服务器到数据库服务器的连通性。检查数据库服务器状态:
检查防火墙和安全组设置:
3306
。检查数据库最大连接数:
SHOW VARIABLES LIKE 'max_connections';
)。检查应用程序配置:
监控和日志分析:
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云关系型数据库主要有以下几种:RDS MySQL版、RDS PostgreSQL 版、RDS SQL Server 版、PolarDB MySQL版、PolarDB PostgreSQL 版、PolarDB分布式版 。