Hello Szládovics Péter

Am 2014-10-15 um 16:07 schrieb Szládovics Péter:
> 2014-10-15 14:52 keltezéssel, Christian Mack írta:
>> Am 2014-10-15 um 11:24 schrieb Sogo Thailand:
>>> Another cue is:
>>>   3285 ?        S      0:00 /usr/bin/tcpsvd -v -i ./peers -c 400 -C
>>> 12:421 per host concurrency limit reached\r\n -l 0 0 imaps sslio -vv
>>> -/ ../imap/ssl -C imapd.pem -u stunnel /usr/bin/imapfront-auth
>>> /usr/libexec/dovecot/imap
>>>   Does this show the problem? How Can I change the value to extend
>>> the limit?
>> Yes, that is your problem.
>>
>> You have to set option PREFORK in either /etc/sysconfig/sogo or
>> /etc/default/sogo to the number of workers you want to use.
>> The value of WOWorkersCount in sogo.conf or GNUstepDefaults is
>> overwritten by the start script /etc/init.d/sogod.
> 
> This helped me too :)
> Christian, did you know what is the best practice for calculating
> WOWorkersCount/PREFORK values?
> 
> An example:
> There is 15 user with Thunderbird/ActiveSync access (more user connected
> through two device simultaneously at the same time).
> The server has 4cores, 2,5GB memory. 15 WOWorkers are too much, or
> enough, or too less?
> How can I calculate it?

You can not calculate it precisely.
But you can get a rough estimate.

1) Every ActiveSync Users will consume one worker.
2) People using the web interface and DAV clients will only consume
workers on an access basis. So the workers needed depends on the sum of
concurrent access to SOGo.

The part of 2) is dependant on the refresh rates of your DAV clients and
the web use cases of your users.
E.g. if they only check their emails once per day via web, then the
workers needed are low.
If they keep being connected to SOGo the whole day while using SOGo,
there must be more workers.

So in your example above:
If every user has one ActiveSync device, then you have to provide 15
workers only for that.
In order for them to be able to use their 2nd device you have to add
additional workers.

In my experience 3 workers should be more than enough for 15 users to
satisfy their DAV and web accesses needs.

After initial setup, you have to monitor your performance.
So CPU usage, memory consumption, hard drive IO and number of concurrent
SOGo sessions should be observed.

You can always use the session table, in order to see, how many
sessions/clients were connected e.g. in the last 10 minutes.
E.g. in Postgres:
psql sogo sogo -c 'select now(), count(*) from sogo_sessions_folder
where c_lastseen > (extract(epoch from now())-(600));'


Kind regards,
Christian Mack

-- 
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung Basisdienste
78457 Konstanz
+49 7531 88-4416

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to