hi there, what are exactly the differences between auth_worker_max_count = 30 and auth default { count = 1 } ? first are threads (for threaded auth methods) and second the number of process ?
The understanding of the high performance server style that dovecot uses is key here. As well as how the various operating systems deal with their specific processes. I couldn't find a fast and easy wikipedia page to link to you, nor am I comfy with linking a specific page from http://httpd.apache.org and pining dovecot as 'it works like this', but i am sure there is a solid apache parallel to one of the apache2.0 types that would work well to describe dovecot and handling the lda/imap/pop stuff. On Jan 2, 2008 1:32 AM, Jorge Salamero Sanz <bencer at cauterized.net> wrote:> > hi there, > > what are exactly the differences between > > auth_worker_max_count = 30 ># Maximum number of dovecot-auth worker processes. They're used to execute # blocking passdb and userdb queries (eg. MySQL and PAM). They're # automatically created and destroyed as needed. #auth_worker_max_count = 30> and > > auth default { > count = 1 > } ># Number of authentication processes to create #count = 1 -- Gabriel Millerd
On Wed, 2008-01-02 at 08:32 +0100, Jorge Salamero Sanz wrote:> hi there, > > what are exactly the differences between > > auth_worker_max_count = 30Auth workers are used for "blocking lookups". With v1.0 that's mainly happening with MySQL. So the main dovecot-auth handles the authentication mechanism part and only does these passdb and userdb lookups to auth workers.> auth default { > count = 1 > }Login processes connect to these main auth processes. If there are more than one, whichever happens to catch the connection first handles it. I don't think there's usually need for more than one main auth process, unless you're handling thousands of connections per second (and even then only up the the number of CPUs on the system). The number of needed auth workers depends on how slow the lookups are. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080111/5896ab66/attachment-0002.bin>