Postgres on AZURE Unhandled rejection TimeoutError: ResourceRequest timed out

时间秒杀一切 提交于 2019-12-20 04:17:23

问题


I have a database postgres on azure, whith General Purpose, 2 vCore(s), 100 GB.

at this moment, when i do a simple request to database, database answer me lot of times with message:

Unhandled rejection TimeoutError: ResourceRequest timed out
at ResourceRequest._fireTimeout (/Project/development/TFS-git/RAILES/railes-backend-api-pt-0317/node_modules/sequelize/node_modules/generic-pool/lib/ResourceRequest.js:62:17)
at Timeout.bound (/Project/development/****/*****/*********/node_modules/sequelize/node_modules/generic-pool/lib/ResourceRequest.js:8:15)
at ontimeout (timers.js:458:11)
at tryOnTimeout (timers.js:296:5)
at Timer.listOnTimeout (timers.js:259:5)

i'm using nodejs, "pg": "7.5.0", "pg-hstore": "^2.3.2", "sequelize": "4.41.0",

i also tryed to scale database to 32 cores, but CPU is more than 95% in both cases.

my pool: pool: { max: 5, min: 0, acquire: 10000, idle: 5, evict: 8 },

in some cases, the connection give-me a timeout with 2 minuts.

any idea?

来源:https://stackoverflow.com/questions/52990489/postgres-on-azure-unhandled-rejection-timeouterror-resourcerequest-timed-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!