Re: Nginx configuration for imap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> $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...

Rob

Rob Mueller
robm@xxxxxxxxxxx

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux