Merge pull request #15351 from overleaf/em-graceful-shutdown

Web graceful shutdown adjustments

GitOrigin-RevId: f940f73933065060956b5797cc43b14faaf4ac60
This commit is contained in:
Eric Mc Sween 2023-10-23 08:08:44 -04:00 committed by Copybot
parent 44f14362dc
commit 37db50b787
2 changed files with 3 additions and 5 deletions

View file

@ -4,7 +4,7 @@ CONTACTS_HOST=contacts
DOCSTORE_HOST=docstore DOCSTORE_HOST=docstore
DOCUMENT_UPDATER_HOST=document-updater DOCUMENT_UPDATER_HOST=document-updater
FILESTORE_HOST=filestore FILESTORE_HOST=filestore
GRACEFUL_SHUTDOWN_DELAY=0 GRACEFUL_SHUTDOWN_DELAY_SECONDS=0
HISTORY_V1_HOST=history-v1 HISTORY_V1_HOST=history-v1
LISTEN_ADDRESS=0.0.0.0 LISTEN_ADDRESS=0.0.0.0
MONGO_HOST=mongo MONGO_HOST=mongo

View file

@ -550,10 +550,8 @@ module.exports = {
behindProxy: false, behindProxy: false,
// Delay before closing the http server upon receiving a SIGTERM process signal. // Delay before closing the http server upon receiving a SIGTERM process signal.
gracefulShutdownDelayInMs: parseInt( gracefulShutdownDelayInMs:
process.env.GRACEFUL_SHUTDOWN_DELAY || 30 * seconds, parseInt(process.env.GRACEFUL_SHUTDOWN_DELAY_SECONDS ?? '5', 10) * seconds,
10
),
// Expose the hostname in the `X-Served-By` response header // Expose the hostname in the `X-Served-By` response header
exposeHostname: process.env.EXPOSE_HOSTNAME === 'true', exposeHostname: process.env.EXPOSE_HOSTNAME === 'true',