Cluster Conf
Fri, 03/09/2012 - 11:34
I want to create a cluster with following conf. and i am using couchbase1.8
1.c1 and c2 are distributed nodes and c3 is the replica of c1 and c4 is replica of c2. i.e data should be distributed among c1 and c2 nodes . c3 is the replica of c1 and c4 is replica of c2.
How can I do the configuration for the above mentioned cluster.
Couchbase base handles replication for you. Just keep adding nodes to the cluster and rebalancing and Couchbase will do the right thing.
In case you interested here's a basic overview of how we handle replication in a cluster. We have a concept called vbuckets which is just a place that keys are hashed to in the server. You never directly interact with vbuckets, but there are 1024 of them. When you add a second node to your cluster vbuckets 1-512 will be active on server 1 and replica on server 2 and vuckets 513-1024 will be replica on server 1 and active on server 2. When you add a third server a similar process happens to spread the active and replica buckets around the cluster.