mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
e0dae46dfc
no issue - To help debug potential causes of slow/aborted get helpers, it would be cool to get more visibility into how Ghost handles database connections, particularly if it has to spend a long time waiting to acquire a new connection from the pool. - Under the hood, knex uses a package called tarn (https://github.com/Vincit/tarn.js/tree/3.0.2) to manage the connection pool. Tarn provides some hooks for instrumentation, so we can use those to get some basic visibility into the connection pool. - This PR adds handling for creating, acquiring and releasing connections from Tarn's connection pool which logs some basic metrics, particularly the queue length and time it takes to acquire a connection. |
||
---|---|---|
.. | ||
e2e-api | ||
e2e-browser | ||
e2e-frontend | ||
e2e-server | ||
e2e-webhooks | ||
integration | ||
regression | ||
unit | ||
utils | ||
.eslintignore | ||
.eslintrc.js |