When I was looking for ways to replicate the contents of memcached for high-availability performance, I found this memcached-repcached application. that has the ability to replicate the contents of one memcached to another.
Repcached key features
- Multi master replication.
- Asynchronous data repliacation.
- Support all memcached command (set, add, delete, incr/decr, flush_all, cas)
People probably already know about memcached . It’s a robust, high performance key-value based memory object cache interface. but unfortunately, lack the ability to create redundancy and replication in memcached server clusters. although replication could be done at the application level. However, it all depends on each individual’s taste.
This is a quick and dirty experiment I have tried using memcached-repcached application on 2 servers.
Download memcached-repcached from repcached.lab.klab.org
Or you can download source rpm version from here
[download#33]
On the first server and second server extract memcached-1.2.8-repcached-2.2.tar.gz, compile with –enable-replication option when configure.
$ tar xvzf memcached-1.2.8-repcached-2.2.tar.gz $ cd memcached-1.2.8-repcached-2.2 $ ./configure --enable-replication $ make