MySql Azure抛出池连接超时错误
我在同一虚拟networking上有两台Azure虚拟机。 一个虚拟机运行一个负责MySQL操作的NodeJs进程。 其他虚拟机运行一个MySQL实例。 我可以从另一个虚拟机和NodeJs进程连接到它。 有时它会失败,并从池中获取连接时出现关于连接超时的错误。 我的连接string使用虚拟networking内的本地IP地址访问数据库,所以它应该有这么多的延迟超过10秒的超时。 当它工作的时候很快,我的意思是非常快! 但是有时它只是rest,随机开始工作。 有人遇到过这个? 如果有任何帮助,这是一个基于Ubuntu Server 15.10的MySQL实例。 例外: { "error": { "name": "Error", "status": 500, "message": "connect ETIMEDOUT", "errorno": "ETIMEDOUT", "code": "ETIMEDOUT", "syscall": "connect", "fatal": true, "stack": "Error: connect ETIMEDOUT at PoolConnection.Connection._handleConnectTimeout (projectdir/node_modules/loopback-connector-mysql/node_modules/mysql/lib/Connection.js:375:13) at Socket.g (events.js:180:16) at Socket.EventEmitter.emit (events.js:92:17) at Socket._onTimeout (net.js:327:8) at Timer.unrefTimeout [as ontimeout] (timers.js:412:13) ——————– at Protocol._enqueue […]