Ghost/ghost/core/test
Chris Raible e0dae46dfc
Added basic instrumentation to the database connection pool (#19589)
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.
2024-01-29 10:25:35 -08:00
..
e2e-api Revert Portal changes (#19594) 2024-01-27 01:46:59 +01:00
e2e-browser Fixed flaky portal tests (#19596) 2024-01-28 23:04:39 +04:00
e2e-frontend 🐛 Fixed broken access to preview of scheduled email-only posts (#19539) 2024-01-22 14:20:50 +00:00
e2e-server Added cache config to stats endpoints (#19481) 2024-01-18 15:26:49 +01:00
e2e-webhooks Cleaned up lexicalEditor labs flag, switched Post model to lexical-by-default (#18607) 2023-10-23 17:51:34 +01:00
integration Fixed reply-to address to stay the same after dmarc changes (#19542) 2024-01-23 16:22:40 +01:00
regression Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
unit Added basic instrumentation to the database connection pool (#19589) 2024-01-29 10:25:35 -08:00
utils Added an email rendering test for all Koenig cards (#19059) 2023-12-12 16:05:04 -08:00
.eslintignore Added Source as the new default theme 2023-10-03 14:02:08 +02:00
.eslintrc.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00