pre-release repcached (data replication patch)

Ben Manes ben_manes at
Fri Nov 2 20:47:15 UTC 2007

Very, very cool.  Keep this up. :-)

----- Original Message ----
From: "HIROSE, Masaaki" <hirose at>
To: memcached at
Sent: Thursday, November 1, 2007 11:38:06 PM
Subject: pre-release repcached (data replication patch)


I said "I am also working for memcached replication" before:

  memcached replication

Finally, We implements all planned features and named this product

We release pre patch at following URL and will relase first version if
critical bug found.


Any comments or advice or bug reports are welcome.

have fun!

main purpose:
  - redundancy memcached system
  - safe fail over

key features:
  - asynchronous data repliacation.
  - single master, single slave.
  - support all memcached command (set, add, delete, incr/decr,
  - slave become master if master going down.
  - whole data copy to slave automatically when new slave connect to

how to:
  $ tar zxf tsng/memcached-1.2.2.tar.gz
  $ cd memcached-1.2.2/
  $ gzip -cd ../repcached-1.0RC4-1.2.2.patch.gz | patch -p1
  $ ./configure --enable-replication
      [notice: cannot set both --enable-replication and --enable-thread
      [        together.
  $ make
  # make install

  two machines "foo" and "bar".

  foo$ ./memcached          (start as master)
  bar$ ./memcached -x foo   (start as slave and connect to master(foo))

  client set key/val to master(foo). we can get same value from

  if master(foo) is down, slave(bar) become new master.

  and re-start memcached at foo as slave.
  foo$ ./memcached -x bar   (start as slave and connect to master(bar))

  all data which master(bar) have will copy to new slave(foo), then
  and slave have same data.

HIROSE Masaaki

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the memcached mailing list