aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-11-17 11:49:12 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-11-22 12:40:51 +0100
commitc19cadf3535f6c5a829251357306ab7ad681ab27 (patch)
treec66b529ec29390baebdb5a97a6d67f094c11004c
parent1bb9c7ce192dc962da15d6e0662d36755c9511e0 (diff)
downloadinfrastructure-c19cadf3535f6c5a829251357306ab7ad681ab27.tar.gz
infrastructure-c19cadf3535f6c5a829251357306ab7ad681ab27.zip
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
-rw-r--r--app/config/configuration/email/sogo/sogo.conf.tpl3
-rw-r--r--app/deployment/email.hcl2
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... */