Nginx configuration for imap

ram ram at netcore.co.in
Thu Mar 18 01:16:49 EDT 2010


On Thu, 2010-03-18 at 14:36 +1100, Robert Mueller wrote:

> 
> > $user['user1'] = 10.1.1.1;
> > $user['user2'] = 10.1.1.2;
> > ----
> > $user[user15000]=10.1.1.1;
> > For 15k users this method becomes very heavy. There are too many httpd
> > processes running that suck the resources on the machine. I want to
> > store the userlist in a memcache and look it up through nginx.conf
> > How do I do this ?
> 
> Don't use memcache, it's a *cache*, you want a *database*. So
> just use a database to store the data, and look it up for each
> user. eg.
> 
> mysql: http://php.net/manual/en/book.mysql.php
> bdb: http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/ext_php.html
> Choose your favourite key/value db here...
> 

But I thought a memcache lookup will be much more inexpenisve than
connecting to a mysql db  to do lookup for every cyrus connection

Is that not true. 


Thanks
Ram

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20100318/724fe811/attachment.html 


More information about the Info-cyrus mailing list