`
nightsailer
  • 浏览: 24407 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

MongoDb Replication

阅读更多
MongoDb的Replication支持: 1. master-slave: slave可以有多个. 2. Replica Pairs 实际上是一个failover的master-slave模式. 启动时,2个node的mongo会协商,其中1个成为master,另一个为slave. 当master down了,那么slave会自动接管成为master. 不过,这种模式需要driver支持. 需要在driver connect时候 选择pairs 模式. 3. 有限的master-master 可忽略 问题是,我希望是 replica pairs + slave(s) 模式. 不幸的是, 目前版本不支持. mailinglist说是在开发中. 主要的一个限制就是slave的source只能在启动时候指定, 虽然支持多个upstream的source,但是无法中途修改. 如果source改变,需要shutdown然后restart. 此外,一个缺陷是,需要client端链接时指定host. 我理想的模式是使用虚拟ip, 一个是writer,一个是reader. 当某个node down了,则通过arp 转到另一个实际的node的真实ip. 这是writer, 如果是reader,那么可以通过LVS来负载均衡 到不同的节点. 粗粗想一下,实现这个解决方案的难度倒不大. 可以参考mysql的mmm. 等等看,如果未来mongodb没有出类似的方案,可以考虑实现一个.
分享到:
评论

相关推荐

    mongoDB Replication 复制模式搭建官网文档

    mongoDB Replication 复制模式官网指导文档

    MongoDB 安装包 —— 单服务器的副本集(Replication)配置(单服务器:Windows)

    MongoDB 安装包 ,包含了单服务器的副本集(Replication)配置(单服务器:Windows)

    mongdb副本集结构的配置

    mongdb副本集结构的配置,公司线上服务器使用的配置方案,分享给大家参考参考。

    MongoDB-replication-guide.pdf

    MongoDB-replication-guide.pdf

    MongoDB系列之(二)replication set

    1. 环境说明  主机名称 IP地址 OS版本  node1 172.16.100.52 CentOS7(kernel: 3.10.0-514.el7.x86_64)  node2 172.16.100.53 CentOS7(kernel: 3.10.0-514.el7.x86_64) ...MongoDB Replication   2. 在node1,node2

    mongodb in action

    mongo replication guide mongo replication guide mongo replication guide

    Mastering MongoDB 3.x

    Addressing the limitations of SQL schema-based databases, MongoDB pioneered a shift of focus for DevOps and offered sharding and replication maintainable by DevOps teams. The book is based on MongoDB...

    真实可用的mongodb下周地址.txt

    视频目录: 01-mongodb文档型数据库特点介绍 01-NoSQL简介 02-mongodb安装过程 02-mongodb操作1 03-mongodb操作2 ...10-replication复制集 10-主从复制 11-shard分片 11-分片 12-使用java操作mongodb

    MongoDB面试专题

    目录: 1.MongoDB 成为最好 NoSQL 数据库...8.分片(sharding)和复制(replication)是怎样工作的? 9.我怎么查看 Mongo 正在使用的链接? 10.MongoDB 在 A:{B,C}上建立索引,查询 A:{B,C}和 A:{C,B}都会使用索引吗? ......

    The.Definitive.Guide.to.MongoDB.3rd.Edition.1484211839

    The Definitive Guide to MongoDB: A complete guide to dealing with Big Data using MongoDB The Definitive Guide to MongoDB, Third Edition, is updated for ...Chapter 11: Replication Chapter 12: Sharding

    MongoDB The Definitive Guide

    Set up master-slave and automatic failover replication in MongoDB Use sharding to scale MongoDB horizontally, and learn how it impacts applications Get example applications written in Java, PHP, ...

    ansible-role-mongodb:Ansible角色来配置MongoDB

    MongoDB 3.4 MongoDB 3.6 MongoDB 4.0 MongoDB的4.2 MongoDB 4.4 Ubuntu 16.04 :no_entry: :check_mark_button: :check_mark_button: :check_mark_button: :cross_mark: Ubuntu 18.04 :no_entry: :check_mark_button...

    The Definitive Guide to MongoDB

    MongoDB, a cross-platform NoSQL database, is the fastest-growing new database in the world. MongoDB provides a rich document-oriented structure with...Master MongoDB administration, including replication

    mongodb管理手册

    mongodb的基本管理手册,开发人员及数据库管理人员可参考。英文文档,可以很容易看明白。 第一章 介绍mongodo 第二章 安装mongodb 第三章 The Data Model ...第十一章 Replication 第十二章 Sharding

    MongoDB.The.Definitive.Guide.chapter9.replication.试译

    《MongoDB权威指南》第9章 复制 试译 MongoDB是一种NoSQL数据库,具备MySQL单表的大部分功能。web2.0的应用往往具有高写负载,单表数据量不断增长等特点。MongoDB是专门为解决这些问题而设计的。

    MongoDB in Action, 2nd Edition

    Its schema-free design encourages rapid application development, and built-in replication and auto-sharding architecture allow for massive parallel distribution. Production deployments at SourceForge...

    MongoDB in Action

    MongoDB in Action introduces you to MongoDB and the document-oriented database model. This perfectly paced book provides both the big picture you'll need as a developer and enough low-level detail to ...

    mongodb+replica+sets+intro

    MongoDB副本集的配置示例,过程简明易懂

    JavaScript Applications with Node.js, React, React Native and MongoDB

    5.2Availability through Replication 5.3 Sharding Chapter 6: NewsWatcher App Development 6.1 Create the Database and Collection 6.2 Data Model Document Design 6.3Trving Out Some Queries 5.4Indexing ...

Global site tag (gtag.js) - Google Analytics