[Dovecot] difference between client_limit and process_limit

Timo Sirainen tss at iki.fi
Mon Jun 11 14:45:43 EEST 2012


On 11.6.2012, at 13.19, Angel L. Mateo wrote:

>> Proxying is done by imap-login process, not imap process. For login processes there are different recommendations.
>> 
> 	What are those recommendations? The ones at http://wiki2.dovecot.org/LoginProcess?

Yes.

> 	Let's suppose... I have 4 mainly imap backend servers (but they admit also pop3 connections) with a process_limit of 5120 for service imap (and default_client_limit of 1000 applied to pop3). And I have 2 director servers (configured as active-active behind a load balancer), so I need director servers to handle (more or less) 10240 imap connections.
> 
> 	What is it better for the director's? Increasing process_limit for imap-login (so each process should handle less connections) or increasing client_limit (less processes handling more connections each)?

If you increase process_limit to more than the number of CPU cores you have, then you increase the number of context switched done by the kernel, which decreases your performance. So I'd say increase client_limit.



More information about the dovecot mailing list