How to make Nginx work with distributed/multiple memcached servers?

Andy nginx-forum at nginx.us
Wed Apr 20 06:09:53 MSD 2011


agentzh Wrote:
-------------------------------------------------------
> > And if it's Django, how do i make sure that
> given the same key, both
> > Django and Nginx will hash to the same memcached
> server?
> >
> 
> If you want your python app to access memcached as
> well, the
> recommended approach is to pass the nginx variable
> holding the hashed
> memcached upstream name back to your fastcgi app.
> 

How do I pass the nginx variable holding the hashed memcached upstream?
Which variable is that?

thanx.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,191573,192476#msg-192476




More information about the nginx mailing list