From 87debe6b2bd0fb760300f35a593af19512a29841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 9 Sep 2016 16:01:08 +0200 Subject: [PATCH] adding multiprocess --- Dockerfile | 7 +------ sogo.default.conf | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82d669f..85218e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,10 +64,5 @@ USER sogo # load env RUN . /usr/share/GNUstep/Makefiles/GNUstep.sh -# Number of Workers - has an impact on performance -# you can tweak this parameters using --env when launching `docker run` -# ex. : `docker run --env WorkersCount=8 sogo-image -ENV WorkersCount 4 - -CMD [ "sogod", "-WOUseWatchDog", " NO", "-WONoDetach", "YES", "-WOPort", "20000", "-WOWorkersCount", "${WorkersCount}", "-WOLogFile", "-", "-WOPidFile", "/tmp/sogo.pid"] +CMD [ "sogod", "-WONoDetach", "YES", "-WOPort", "20000", "-WOLogFile", "-", "-WOPidFile", "/tmp/sogo.pid"] diff --git a/sogo.default.conf b/sogo.default.conf index 6fdd508..89cf3cc 100644 --- a/sogo.default.conf +++ b/sogo.default.conf @@ -127,6 +127,12 @@ // reach memcached through docker SOGoMemcachedHost = "memcached"; + + // this has a great impact on performance: you should adjust the number + // of workers according to the number of users and the performance of your + // machine + WorkersCount = 4; +