1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Implement app clustering (#17752)

* Install throng for easy cluster management
* Extract the Express app construction into its own file
* Switch server.js to use app clustering for deployed environments
* Worker count is based on the lesser of process.env.WEB_CONCURRENCY and the count of CPUs
* Reading clustered output is difficult, let's prefix the std{out,err} streams

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
This commit is contained in:
James M. Greene
2021-03-19 15:07:46 -05:00
committed by GitHub
parent b6321bba15
commit 6e20ed7927
12 changed files with 161 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
const path = require('path')
const { isPlainObject } = require('lodash')
const supertest = require('supertest')
const app = require('../../server')
const app = require('../../lib/app')
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-version')
const Page = require('../../lib/page')