Merge pull request #2223 from overleaf/spd-redis-retries

Add maxRetriesPerRequest redis setting

GitOrigin-RevId: 69810e40eaedaf05d9e3397b59b26ea43ecbe9ce
This commit is contained in:
Brian Gough 2019-10-10 14:45:05 +01:00 committed by sharelatex
parent d376047c20
commit 9edb95b706

View file

@ -36,6 +36,7 @@ module.exports = settings =
host: process.env['REDIS_HOST'] || "localhost"
port: process.env['REDIS_PORT'] || "6379"
password: process.env["REDIS_PASSWORD"] or ""
maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"]) || 20
# websessions:
# cluster: [
@ -71,6 +72,7 @@ module.exports = settings =
host: process.env['REDIS_HOST'] || "localhost"
port: process.env['REDIS_PORT'] || "6379"
password: process.env["REDIS_PASSWORD"] or ""
maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"]) || 20
# Service locations
# -----------------