clustering: how it works??
Tue, 07/10/2012 - 21:34
Say I have the below configurations.
1 memcache server in US. 1 memcache server in Europe.
My website makes use of the cluster of 2 nodes. memcache will split the caching between the 2 nodes??
1.user A retrieves a post from database and the application cached it. assume (123,$post) in US node.
2.user B wants to retrieve the same post, from Europe. Will looking for key 123 finds the cache? Does it matters if both users are in US or Europe?
Thanks!
Couchbase clustering is not meant to be used over that long of a distance and is only tested and recommended to be used in a datacenter. In Couchbase 2.0 we will provide cross data center replication and this will be able to handle replication over long distances.
Let's say you have cross datacenter replication setup. User A in the US sets a document in the database. That document is persisted in the US cluster and placed in a queue to be replicated to your Europe datacenter. Depending on the workload the time to replicate across can vary, but your data will replicated and persisted into you Europe database as sonn as possible. Now User B tries to access the data in Europe and finds it in the Europe database. Does that answer your questions?