From cdbe90c182d979bad478e4e044ef63fcbd053c15 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 19 Apr 2021 21:39:30 +0400 Subject: [PATCH] Only enable statistics service from node master process. fixes #460 --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index bcfa03534..916f47e12 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -81,7 +81,7 @@ class Server { await checkDbConnection(); } - if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED) { + if (config.STATISTICS.ENABLED && config.DATABASE.ENABLED && cluster.isMaster) { statistics.startStatistics(); }