adding multiprocess

This commit is contained in:
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 # load env
RUN . /usr/share/GNUstep/Makefiles/GNUstep.sh RUN . /usr/share/GNUstep/Makefiles/GNUstep.sh
# Number of Workers - has an impact on performance CMD [ "sogod", "-WONoDetach", "YES", "-WOPort", "20000", "-WOLogFile", "-", "-WOPidFile", "/tmp/sogo.pid"]
# 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"]

View file

@ -127,6 +127,12 @@
// reach memcached through docker // reach memcached through docker
SOGoMemcachedHost = "memcached"; 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;