From d0c54f1be64601b10b12363d5eb153626eafb4c7 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 12 Jul 2016 11:04:37 +0100 Subject: [PATCH 1/2] Increase secondary timeout to 600ms --- services/document-updater/app/coffee/RedisBackend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/RedisBackend.coffee b/services/document-updater/app/coffee/RedisBackend.coffee index f4c910a2df..8dc766ed33 100644 --- a/services/document-updater/app/coffee/RedisBackend.coffee +++ b/services/document-updater/app/coffee/RedisBackend.coffee @@ -6,7 +6,7 @@ Metrics = require "metrics-sharelatex" class Client constructor: (@clients) -> - @SECONDARY_TIMEOUT = 200 + @SECONDARY_TIMEOUT = 600 @HEARTBEAT_TIMEOUT = 2000 multi: () -> From a1bac9719adb2272ef399009ee7c27365318ee49 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 12 Jul 2016 11:45:10 +0100 Subject: [PATCH 2/2] Update secondary timeout for multi commands too --- services/document-updater/app/coffee/RedisBackend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/RedisBackend.coffee b/services/document-updater/app/coffee/RedisBackend.coffee index 8dc766ed33..9ec479c01f 100644 --- a/services/document-updater/app/coffee/RedisBackend.coffee +++ b/services/document-updater/app/coffee/RedisBackend.coffee @@ -57,7 +57,7 @@ class Client class MultiClient constructor: (@clients) -> - @SECONDARY_TIMEOUT = 200 + @SECONDARY_TIMEOUT = 600 exec: (callback) -> primaryError = null