adding multiprocess
This commit is contained in:
parent
7a056bc012
commit
87debe6b2b
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue