Multi-Master Memcached Replication

hirose at klab.org hirose at klab.org
Sun Apr 27 14:27:32 UTC 2008


hi!

repcached 2.0 supports master-master replication. 2.0's replication
cooperate with client library's server balancing feature.

            +--------+
            | client |
            +--------+
      key:foo    |    key:bar
         +-------+-------+
         |               |
         v               v
  +----------+       +----------+
  |  mcd-A   |       |  mcd-B   |
  |+--------+|repl   |+--------+|
  ||        ||------->|        ||
  ||key:foo ||       ||key:foo ||
  ||........||       ||........||
  ||        |<-------||        ||
  ||key:bar ||   repl||key:bar ||
  |+--------+|       |+--------+|
  +----------+       +----------+

 * client sets servers = [ 'mcd-A', 'mcd-B' ]
 * key:foo always access to server mcd-A
 * key:bar always access to server mcd-B
 * there is no conflict data replication between mcd-A and mcd-B
   because memory area is separated by client library's server
   balancing.

please try repcached-2.0!:
http://repcached.lab.klab.org/



in "Multi-Master Memcached Replication"
   <223a68c0804211154kab6d45bh812d8ce8bc52f68c at mail.gmail.com>
at Mon, 21 Apr 2008 11:54:57 -0700,
   kris.drebin at a-cti.com wrote:

> [1  <text/plain; ISO-8859-1 (7bit)>]
> Greetings everyone,
> 
> I'm trying to setup the following scenario.. I thought you all would
> probably have some great advise. Here's the idea:
> 
> I currently have:
> 
> 1 Tomcat Web Server
> 1 Memcached Server
> 1 Postgresql database
> 
> In the event that any of these services fail, my web application does not
> work properly.
> 
> I would like to create the scenario where I have:
> 
> 2 tomcat web servers
> 2 memcached servers
> 1 Postgresql database
> 
> So that the memcached servers are staying in sync with each other, in a
> multi-master fashion. I found the tool repcached, but it is single-master,
> single slave. This will not work for my application. Any ideas?
> 
> One more piece of information is that my Postgresql database does not
> currently support multi-master replication. I'm in the process of migrating
> to MySQL to achieve this, but that's a ways out.. so if you were thinking of
> that avenue, unfortunately it's not available quite yet.
> 
> Your ideas are appreciated!
> 
> Thanks,
> Kris Drebin
> [2  <text/html; ISO-8859-1 (7bit)>]
> 


More information about the memcached mailing list