jrconlin/pushgo

memcache.server should support multiple servers

Closed this issue · 2 comments

https://github.com/bradfitz/gomemcache/ supports multiple servers and shards keys out amongst them. We should let memcache.server take multiple servers split with ";" e.g.,

memcache.server = 127.0.0.1:11211;10.10.10.1:11211;10.10.10.2:11211

This will require app level key sharding based on UAID and modification of the storage library.

Looks like in the code you can specify your own server selection code. The default one is a modula number of servers there are. Good enough for now I think... eventually a libketama implementation would be nicer. That is if we don't just rip out the memcache stuff .. ;)