This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
merle /
| name | age | message | |
|---|---|---|---|
| |
Emakefile | Fri Feb 06 12:19:17 -0800 2009 | |
| |
Makefile | Wed Apr 08 05:09:19 -0700 2009 | |
| |
NOTICES | Sun Jan 18 21:13:24 -0800 2009 | |
| |
README | Thu Apr 09 05:19:19 -0700 2009 | |
| |
README.orig | Wed Apr 08 05:09:19 -0700 2009 | |
| |
Rakefile | Fri Apr 10 00:49:05 -0700 2009 | |
| |
erlang_config.rb | Thu Apr 09 05:19:19 -0700 2009 | |
| |
ketama.servers | Wed Apr 08 05:09:19 -0700 2009 | |
| |
src/ | Thu Apr 09 07:20:49 -0700 2009 | |
| |
t/ | Thu Apr 09 05:19:19 -0700 2009 |
README
For original README, see README.orig = About = Building on merle and ketama, this application enables memcached access from erlang. = Prerequisites = - ruby and rake for building - libketama <http://www.audioscrobbler.net/development/ketama/> - memcached servers <http://www.danga.com/memcached/> = Builing = Run rake a first time and make sure ERL_TOP is set at the right location. sudo rake install will install the application where necessary. = Example Usage = Provide a ketama.servers file (such as the one here). Open 3 terminals and start memcached in each one of them on a different port : $ memcached -p 11211 -vv $ memcached -p 11212 -vv $ memcached -p 11213 -vv Open another terminal, and run : $ erl -s merle -merle file '"ketama.servers"' # use the one included here. You should see on the memcached servers something like : <18 new client connection For the rest, see the README.orig file You should see that the keys you set are distributed amongs the servers. = Editing the ketama file = The ketama.servers file is tracked and reloaded each time it is modified. ketama provided consistent hashing goodness ; adding and removing memcached servers does not invalidate all the cache. One caveat : currently the app doesn't flush newly added memcached servers, that may cause inconsistencies. On top of that, I have not implemented the flush command for a specific server. = Authors = Eric Cestari, maintaining this stuff. With original merle client * Copyright 2009, Joe Williams <joe@joetify.com> * Copyright 2009, Nick Gerakines <nick@gerakines.net> And original ketama driver by Richard Jones last.fm (thanks guys !)







