mongo-connector来同步mongo

个人博客:https://blog.sharedata.info/

最近需要做mongo之间的同步,因此还是选择之前的工具mongo-connector
gitHub文档:https://github.com/mongodb-labs/mongo-connector/wiki/Usage-with-MongoDB
同步mongo test3.t1和test4.t1(localhost同步到36)
mongo-connector -m localhost:27017 -t 192.168.0.36:32771 -n test3.t1,test4.t1 -d mongo_doc_manager

时间: 2024-07-31 09:39:22

mongo-connector来同步mongo的相关文章

转:使用Mongo Connector和Elasticsearch实现模糊匹配

原文来自于:http://www.csdn.net/article/2014-09-01/2821485-how-to-perform-fuzzy-matching-with-mongo-connector 摘要:短短两年,Mongo Connector取得了突破性的进展,用户已经可以通过它完成连接器两边的同步更新.而基于这个特性,其他工具针对MongoDB内存储文件的实时操作也成为可能. [编者按]本篇博文作者Luke Lovett是MongoDB公司的Java工程师,他展示了Mongo Co

MongoDB - The mongo Shell, Configure the mongo Shell

Customize the Prompt You may modify the content of the prompt by setting the variable prompt in the mongo shell. The promptvariable can hold strings as well as JavaScript code. If prompt holds a function that returns a string, mongo can display dynam

Docker Mongo数据库主从同步配置方法

一.具体操作方法 1.启两个Mongo容器 docker run --name mongo1 -p 21117:27017 -d mongo --noprealloc --smallfiles --replSet rs1 docker run --name mongo2 -p 22117:27017 -d mongo --noprealloc --smallfiles --replSet rs1 2.查看正在运行的容器 docker ps | grep mongo 3.查看mongo1.mong

mongo第一天(mongo初体验)

一.Mac OS X上mango的安装 1.打开终端窗口, 粘贴以下脚本,安装Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. 在终端更新brew,打开命令行输入: brew update 3.安装MongoDB: brew install mongodb 4.创建/data/db目录: mkdir -p /data/db 5.ru

MongoDB - The mongo Shell, Access the mongo Shell Help

In addition to the documentation in the MongoDB Manual, the mongo shell provides some additional information in its “online” help system. This document provides an overview of accessing this help information. Command Line Help To see the list of opti

使用Mongo官方驱动操作Mongo数据库

首先到 https://github.com/mongodb/mongo-csharp-driver/downloads 下载Mongo官方驱动 下载完成后引用到项目中 public class ConnHelp { public static string ConnectionString = "mongodb://127.0.0.1:27017/qiao"; public static MongoDatabase GetDatabaseFromUrl(MongoUrl url) {

mongo与elasticsearch数据同步插件

前提条件: mongo集群必须是副本集,因为同步插件读取的是日志文件 1.需要安装pip插件(如果已经安装不需再安装) yum install python-setuptools && easy_install pip 2.在mongo端  安装 mongo-connector.pip install mongo-connector 3.安装 elastic2-doc-manager(注意这个是针对es2.x版本的,如果es安装的是1.x版本,用elastic-doc-manager)pi

Mongo 后台加索引踩坑

背景,随着mongo数据量变大,查询效率变低,要对索引进行优化,所在公司对mongo依赖比较严重,而DBA并不对mongo的权限做控制,所以每个后端开发都有mongo的读写权限,通常每个人各自管理自己的模块的数据. 由于笔者所负责的模块数据增长较快,用户的关键业务数据都存在mongo里面,很快mongo里面的数据就积累到几百万,之前只有一个五个字段的联合索引,所以是时候作死了... 本着作死要有条不紊有依有据的原则,在测试数据库接近百万数据量的相同Collection里面进行了实操,阻塞方式加索

ubuntu安装mongo数据库

安装mongo数据库,在shell下输入 sudo apt-get install mongodb 如果需要在Python中使用mongo数据库,还需要额外安装Python封装库 pip install pymongo 检测安装是否成功,可以使用下面命令在本地启动MongoDB mongod -dbpath . 在shell中输入mongo,就可以进入mongo数据库 查询数据库语句 > show databases; cache 0.0625GB local 0.03125GB 使用数据库语句