Ghost/ghost/core/test/unit/server
Steve Larson a1c4e64994
Added queueing middleware to handle high request volume (#19887)
ref https://linear.app/tryghost/issue/CFR-4/
- added request queueing middleware (express-queue) to handle high
request volume
- added new config option `optimization.requestQueue`
- added new config option `optimization.requestConcurrency`
- added logging of request queue depth - `req.queueDepth`

We've done a fair amount of investigation around improving Ghost's
resiliency to high request volume. While we believe this to be partly
due to database connection contention, it also seems Ghost gets
overwhelmed by the requests themselves. Implementing a simple queueing
system allows us a simple lever to change the volume of requests Ghost
is actually ingesting at any given time and gives us options besides
simply increasing database connection pool size.

---------

Co-authored-by: Michael Barrett <mike@ghost.org>
2024-03-21 09:25:07 -05:00
..
adapters 🐛 Fixed HTTP 500 error when given incorrect Range header 2024-03-11 19:14:30 +01:00
data Added missing permissions to Contributor & Editor (#19881) 2024-03-20 20:36:07 +07:00
lib Upgraded to latest version of @tryghost/request 2023-09-26 12:45:14 +01:00
models Added missing permissions to Contributor & Editor (#19881) 2024-03-20 20:36:07 +07:00
services Removed support for id specific permissions 2024-03-21 00:21:40 +07:00
web Added queueing middleware to handle high request volume (#19887) 2024-03-21 09:25:07 -05:00
notify.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00