Couchbase running entire data sets on several servers with "multi-master" replication
Hi,
I want to run couchbase on several servers where there is an application on each server that writes to and reads from the local couchbase instance which should contain the entire data set.
The couchbase instances should replicate async to each other so that each couchbase instance on each server is eventually consistent.
I'm trying to avoid reads/writes over the network as the application does 100s/1000s of hits per page delivery. (I know it would be better to do multi-gets and multi-sets or re-architect the application to parallelise but this isn;t an option).
Is this even possible with couchbase?
Thanks,
Andrew
Hi, thanks for the reply.
I guess I'm talking about multiple nodes in the same cluster. I want to have all the data available on each node in the cluster. I run an application on the same server that each Couchbase node runs on and I only want that application to read and write locally to the server (i.e.avoid network round trips completely). The writes would then sync with other nodes in the cluster over the network so that each node would contain a full set of the data.
The key here is that I don't want the reads and writes to Couchbase to have the latency of a network round trip but instead to hit it on the same server.
Is this possible?
Andrew
Hello Andrew,
When you are talking about "replication"
1)- are you talking about replication of data between nodes in the same cluster?
- in this case no issue you do not have master-slave, only master. BUT the data are distributed over all the nodes of the cluster.
2)- or are you talking about replication of data between 2 clusters?
- you can do copy all the data from one node to another using XDCR but not sure what ill be the benefits on your case.
Could you explain why you want to do that?
You should let the cluster deal with the partition of the data since with Couchbase we provide your consistent latency/perf in a cluster.
Regards
Tug
@tgrall