重新考虑数据库跨集群复制 [英] Rethink DB Cross Cluster Replication

查看:108
本文介绍了重新考虑数据库跨集群复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在3个不同的地理位置有3个不同的客户群.

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

我需要为Rethinkdb配置3个不同的群集,并在(插入,更新和删除)之间复制数据.我不想使用分片,只想复制.

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.

感谢您的帮助.

推荐答案

我认为多集群就像一个具有不同数据中心节点的单个集群一样

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

首先,您需要设置集群,请遵循以下文档: http://www.rethinkdb.com/docs/start-a-server/#a-rethinkdb-cluster-using-multiple-machines

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

设置好群集后,其余的操作就很容易了.转到管理员ui,选择表,在共享和复制"中,单击重新配置",然后输入所需的复制数量,仅将碎片保留为1.

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.

您还可以在 http://rethinkdb.com/docs/sharding-and-replication/#sharding-and-replication-via-the-web-console

这篇关于重新考虑数据库跨集群复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆