openresty / memc-nginx-module

An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands.
http://wiki.nginx.org/NginxHttpMemcModule
213 stars 56 forks source link

use of upstream in memc #1

Closed dobe closed 14 years ago

dobe commented 14 years ago

would be nice to have memc work with upstream definitions like the original memcache module does, this would enable multiple memcached hosts with the preferred hashing alogrithm

agentzh commented 14 years ago

It does:

upstream backend {
  server 127.0.0.1:11984;
  server 127.0.0.1:11985;
}
server {
    location /stats {
        set $memc_cmd stats;
        memc_pass backend;
    }
}

maybe I should make it clear in the document :P Or are you experiencing problems with such configurations?

dobe commented 14 years ago

thanks for the information... i was just confused from the documentation (which is actually the same as for the memcached module):: memc_pass syntax: _memcpass :

regards, bernd

agentzh commented 14 years ago

Oh, my bad...forgot to update that part...thanks for the catch :)