i have a doubt, could we with couchbase choose the servers where i want to replicate information?
(i want to replicate some information on specific servers)
Thank you, Andreia Silva
Couchbase automatically replicates data across the cluster in a way to minimize the potential for data loss. It is not possible right now for a user to specify where data is replicated. What is your case for needing to be able to replicate to specific server?
I need to replicate some special data between different and specific servers. I am developing a health system and there some information that i need to restore in a specific servers. For example there are some "tables" that i will use for translation terms,(id and translation). I need to put into PT servers -> pt info and US serves-> us.
Thank you :)
Inside a single datacenter (one cluster) you cannot chose where the data are going, Couchbase internal business logic is selecting the proper nodes.
When you are dealing with Cross Data Center Replication (XDCR) you can replicate data from one cluster (PT) to another (US), but the data are replicated at the bucket level.
So if you want to replicate only a part of your database to a specific datacenter you need to:
- create 1 bucket for each "target" and put the XDCR in place for this bucket
- you have to replicate all the data and find a way to be sure that your target (US) is only using the proper data. One approach for that is to prefix the key (and/or some JSON attribute) with some value
for example the key could looks like
pt:mykey:001 , us:mykey:003, ...
and your application in the targeted datacenter will use only the proper keys.
Do not hesitate to give us more information about your use cases to see what is the best approach.
i will explain my project. I will have for example an Hospital is where i have one or more servers. And at every server there will be some information that is uploaded on this machine.
And i have Hospital1->PT language
Hospital2 ->PT language
Hospital3-> ES language
Hospital 4-> ES language
And i will have some infoPT that i want to replicate on Hospitals with the PT language, and infoES on Hospitals with the ES language. And also i want to replicate on two servers at least on the Hospital1(for example) the registers of the consultations on this specific Hospital. I think that i will need to have an RDMBS to represent the Hospital->ipservers relation and to know which language that it is at this hospital.
I i want ro Query all the servers.
I'm i thinking well?
© 2013 COUCHBASE All rights reserved.