Rethink DB Cross Cluster Replication

岁酱吖の 提交于 2019-12-11 10:59:51

问题


I have 3 different pool of clients in 3 different geographical locations.

I need configure Rethinkdb with 3 different clusters and replicate data between the (insert, update and deletes). I do not want to use shard, only replication.

I didn't found in documentation if this is possible.

I didn't found in documentation how to configure multi-cluster replication.

Any help is appreciated.


回答1:


I think that multi cluster is just same a single clusters with nodes in different data center

First, you need to setup a cluster, follow this document: http://www.rethinkdb.com/docs/start-a-server/#a-rethinkdb-cluster-using-multiple-machines

Basically using below command to join a node into cluster:

rethinkdb --join IP_OF_FIRST_MACHINE:29015 --bind all

Once you have your cluster setup, the rest is easy. Go to your admin ui, select the table, in "Sharding and replication", click Reconfigure and enter how many replication you want, just keep shard at 1.

You can also read more about Sharding and Replication at http://rethinkdb.com/docs/sharding-and-replication/#sharding-and-replication-via-the-web-console



来源:https://stackoverflow.com/questions/32326888/rethink-db-cross-cluster-replication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!