adding multiprocess

3.1
Julien Fastré 2016-09-09 16:01:08 +02:00
parent 7a056bc012
commit 87debe6b2b
2 changed files with 7 additions and 6 deletions

View File

@ -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"]

View File

@ -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;