Reputation: 211
I've got two sets of servers hosted on different continents belonging to a rethinkdb cluster. The primary belongs to one set, so any query generated from the other set takes a lot of time to execute under the default read and write consistency modes.
I was wondering if there is anyway I could make separate clusters for each of the sites and cross-replicate between the clusters? (I took a look at Rethink DB Cross Cluster Replication, but there doesn't seem to be such a solution.)
If not, is there a way I could setup two primaries in a cluster, one for each of the sites without breaking consistency guarantees?
Upvotes: 1
Views: 133
Reputation: 5289
You can have two primaries in a cluster either by having two tables, one for each set of servers, or by sharding a single table. You can control which server set the primary ends up in by using server tags (https://www.rethinkdb.com/docs/sharding-and-replication/).
Upvotes: 2