<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
I am using ngnix as a Load balancer for two imap servers.<BR>
<BR>
Currently the nginx calls an apache php script that determines if the user is on imap1 or imap2 by looking up a plain text file.<BR>
which contains entries like<BR>
<BR>
$user['user1'] = 10.1.1.1;<BR>
$user['user2'] = 10.1.1.2;<BR>
----<BR>
$user[user15000]=10.1.1.1;<BR>
<BR>
<BR>
For 15k users this method becomes very heavy. There are too many httpd processes running that suck the resources on the machine.<BR>
I want to store the userlist in a memcache and look it up through nginx.conf<BR>
How do I do this ?<BR>
<BR>
<BR>
Does Nginx support for memcache also include imap protocol<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Thanks<BR>
Ram<BR>
<BR>
</BODY>
</HTML>