Memcached HA -how to replicate data from one memcached to another?

777 views
Skip to first unread message

chmin wu

unread,
Apr 5, 2012, 10:04:19 AM4/5/12
to memc...@googlegroups.com

     Hi, I have two memcached server running in different machine for HA purpose- they are used to backup for each other. The data stored in memcached is very important for my application; memcached servers must have the same data for backup.

    So the question is,  if a memcached server crashes and resume, how to completely replicate all the data from the  the healthy one to the rusumed one?

    Many thanks in advance!

Yiftach Shoolman

unread,
Apr 5, 2012, 10:26:01 AM4/5/12
to memc...@googlegroups.com
Hi,

In general, Memcached was not built for HA. 

IMO this is #1 drawback of Memcached, as these days many people are storing information on Memcached without backing it with persistence RDBMS/NoSQL solution; in-order to maintain the high-throughput low-latency of their application.

That being said, there some open source and commercial solutions that solve this issue, e.g. Redis, Membase (now Couchbase), and Garantia.

Best,

Yiftach
(Disclosure: I'm one of the Founders of Garantia) 
--
Yiftach Shoolman
+972-54-7634621

Bluejack

unread,
Apr 5, 2012, 11:37:03 AM4/5/12
to memc...@googlegroups.com

Membase/couchbase is nice because it is interface-compatible with memcache. However, you will not get the same performance from it as from memcache, and it is not as stable under very high load.

-bluejack
--
---------------------------------------------------------------
Work as though you live in the younger days of a better nation.
~~ Dennis Lee
---------------------------------------------------------------


comain chen

unread,
Apr 5, 2012, 7:20:20 PM4/5/12
to memc...@googlegroups.com
That might be done in the client. You can turn on replicating and
fail-over, during fail-over you need
read-repair to restore data on the resumed instance. However to make
these work correctly, careful programming is needed.

Best regrads,
Chen,Congwu

Reply all
Reply to author
Forward
0 new messages