1.环境:单台服务器上开启四个mongodb实例来实现mongodb的ReplicaSet副本集方式的集群搭建2.配置文件:master主实例配置文件:[root@localhost~]#cat/usr/local/mongodb/mongod.cnflogpath=/data/mongodb-master/logs/mongodb.loglogappend=true#forkandruninbackgroundfork=tr..
分类:
数据库 时间:
2017-09-14 18:49:14
阅读次数:
171
部署Mongodb高可用集群 准备 按照官方说明,至少需要3个config server,2个mongos,2个shard,每个shard至少2个副本,就是4个shard,共需要9个Mongodb实例。这里只虚拟出2个机器节点,将不同的Mongodb实例部署在不同的端口上模拟实现。 leo.zhi. ...
分类:
数据库 时间:
2017-09-12 18:37:02
阅读次数:
239
MongoDB 是目前在 NoSQL 市场上非常受欢迎的一个数据库,本文介绍如何使用 Azure PowerShell 和 Azure CLI 在 Azure 虚拟机上搭建单节点 MongoDB(测试使用)和包含主从复制以及分片集群的多节点 MongoDB(生产环境使用)。 准备步骤 如果你选择 A ...
分类:
数据库 时间:
2017-09-06 18:25:54
阅读次数:
298
说下shard出现的几个状态说明: relocating_shards shows the number of shards that are currently moving from one node to another node(现网中遇到,因为kill -9重启es的方法不对,导致node ...
分类:
其他好文 时间:
2017-08-31 19:03:50
阅读次数:
192
Red Cluster! 摘自:http://blog.kiyanpro.com/2016/03/06/elasticsearch/reroute-unassigned-shards/ There are 3 cluster states: When cluster health is red, i ...
分类:
其他好文 时间:
2017-08-31 18:04:43
阅读次数:
605
Recovering unassigned shards on elasticsearch 2.x 摘自:https://z0z0.me/recovering-unassigned-shards-on-elasticsearch/ I got accross the problem when dec ...
分类:
其他好文 时间:
2017-08-31 17:59:04
阅读次数:
233
什么是一个Shard? Shard就是一个Lucene Index,参照文章(深入理解Shard和Lucene Index)。 Index需要多少个Shard? 回答这个问题,我们需要先谈谈节点,一个集群有多个节点,具体需要多少个节点合适,是另外一个问题,但是这个数字也会影响我们对Shard数的设置 ...
分类:
其他好文 时间:
2017-08-30 17:35:24
阅读次数:
184
摘要: 作为对垃圾游戏时代的致敬, Andreas Streichhardt 使用ArangoDB 数据库创建了一个Flash 游戏来纪念这个时代。快来看看吧! ...
分类:
数据库 时间:
2017-08-29 21:46:23
阅读次数:
173
手动预先分片: 目的:手动预先分片是为了防止未来chunk的移动,减少IO。 sh.shardCollection("shop.users",{"userId": 1 }) for(var i=1; i<=30; i++){ sh.splitAt("shop.users", {userId: i*1 ...
分类:
数据库 时间:
2017-08-20 18:32:32
阅读次数:
210
分片和副本集混合运用: 基本架构图: 搭建详细配置: 3个shard + 3个replicat set + 3个configserver + 3个Mongos shardrsname Primary Secondary Secondary port bigdata-sh-a bigdata-sh-a ...
分类:
数据库 时间:
2017-08-20 14:48:21
阅读次数:
291