From c19cadf3535f6c5a829251357306ab7ad681ab27 Mon Sep 17 00:00:00 2001 From: Quentin Date: Tue, 17 Nov 2020 11:49:12 +0100 Subject: [PATCH] Fix sogo conf to match RAM usage To do the math: SoGo SxVMemLimit * SoGo WOWorkersCount < Nomad Memory Limit Before we had 384 * 10 >>> 1000 Now we have 300 * 3 < 1000 --- app/config/configuration/email/sogo/sogo.conf.tpl | 3 ++- app/deployment/email.hcl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/config/configuration/email/sogo/sogo.conf.tpl b/app/config/configuration/email/sogo/sogo.conf.tpl index d4261e5..ab4f8f5 100644 --- a/app/config/configuration/email/sogo/sogo.conf.tpl +++ b/app/config/configuration/email/sogo/sogo.conf.tpl @@ -1,6 +1,7 @@ { WONoDetach = NO; - WOWorkersCount = 10; + WOWorkersCount = 3; + SxVMemLimit = 300; WOPort = "127.0.0.1:20000"; SOGoProfileURL = "postgresql://{{ key "secrets/email/sogo/postgre_auth" | trimSpace }}@psql-proxy.service.2.cluster.deuxfleurs.fr:5432/sogo/sogo_user_profile"; OCSFolderInfoURL = "postgresql://{{ key "secrets/email/sogo/postgre_auth" | trimSpace }}@psql-proxy.service.2.cluster.deuxfleurs.fr:5432/sogo/sogo_folder_info"; diff --git a/app/deployment/email.hcl b/app/deployment/email.hcl index 86c4d87..898cfbc 100644 --- a/app/deployment/email.hcl +++ b/app/deployment/email.hcl @@ -424,7 +424,7 @@ job "email" { ] } env { - FAKE = 2 + FAKE = 1 } /* Workaround as there is no consul source and no way to template recursively... */