From 7b19b8278a0ad50a4cb2c8bf176f3f310f35d310 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 4 Oct 2019 11:53:14 +0100 Subject: [PATCH] add ioredis option maxRetriesPerRequest: 0 see https://github.com/luin/ioredis/issues/965 --- config/settings.defaults.coffee | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/settings.defaults.coffee b/config/settings.defaults.coffee index ca7daae8..eb647dab 100755 --- a/config/settings.defaults.coffee +++ b/config/settings.defaults.coffee @@ -25,11 +25,13 @@ module.exports = host: process.env['PUBSUB_REDIS_HOST'] or process.env['REDIS_HOST'] or "localhost" port: process.env['PUBSUB_REDIS_PORT'] or process.env['REDIS_PORT'] or "6379" password: process.env["PUBSUB_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" - + maxRetriesPerRequest: 0 + history: port: process.env["HISTORY_REDIS_PORT"] or process.env["REDIS_PORT"] or "6379" host: process.env["HISTORY_REDIS_HOST"] or process.env["REDIS_HOST"] or "localhost" password: process.env["HISTORY_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" + maxRetriesPerRequest: 0 key_schema: uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}" docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}" @@ -38,6 +40,7 @@ module.exports = port: process.env["HISTORY_REDIS_PORT"] or process.env["REDIS_PORT"] or "6379" host: process.env["HISTORY_REDIS_HOST"] or process.env["REDIS_HOST"] or "localhost" password: process.env["HISTORY_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" + maxRetriesPerRequest: 0 key_schema: projectHistoryOps: ({project_id}) -> "ProjectHistory:Ops:{#{project_id}}" projectHistoryFirstOpTimestamp: ({project_id}) -> "ProjectHistory:FirstOpTimestamp:{#{project_id}}" @@ -46,6 +49,7 @@ module.exports = port: process.env["LOCK_REDIS_PORT"] or process.env["REDIS_PORT"] or "6379" host: process.env["LOCK_REDIS_HOST"] or process.env["REDIS_HOST"] or "localhost" password: process.env["LOCK_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" + maxRetriesPerRequest: 0 key_schema: blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}" @@ -53,6 +57,7 @@ module.exports = port: process.env["DOC_UPDATER_REDIS_PORT"] or process.env["REDIS_PORT"] or "6379" host: process.env["DOC_UPDATER_REDIS_HOST"] or process.env["REDIS_HOST"] or "localhost" password: process.env["DOC_UPDATER_REDIS_PASSWORD"] or process.env["REDIS_PASSWORD"] or "" + maxRetriesPerRequest: 0 key_schema: blockingKey: ({doc_id}) -> "Blocking:{#{doc_id}}" docLines: ({doc_id}) -> "doclines:{#{doc_id}}"