mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
a1c4e64994
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>
39 lines
1012 B
JSON
39 lines
1012 B
JSON
{
|
|
"name": "@tryghost/job-manager",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'",
|
|
"test": "yarn test:unit",
|
|
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
|
"lint": "yarn lint:code && yarn lint:test",
|
|
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"@sinonjs/fake-timers": "11.2.2",
|
|
"c8": "8.0.1",
|
|
"date-fns": "2.30.0",
|
|
"delay": "5.0.0",
|
|
"mocha": "10.2.0",
|
|
"should": "13.2.3",
|
|
"sinon": "15.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@breejs/later": "4.2.0",
|
|
"@tryghost/errors": "1.3.1",
|
|
"@tryghost/logging": "2.4.13",
|
|
"bree": "6.5.0",
|
|
"cron-validate": "1.4.5",
|
|
"fastq": "1.17.1",
|
|
"p-wait-for": "3.2.0"
|
|
}
|
|
}
|