2019年7月30日
摘要: 通常来说,MongoDB会自动处理数据均衡。 1.1 集群分片的块的均衡 注意,均衡器只使用块的数量,而非数据大小,来作为衡量分片间是否均衡的指标。 1.2 均衡器 1、执行所有数据库管理操作前,都应关闭均衡器 >sh.setBalancerState(flase) --不可用 >sh.stopBa 阅读全文
posted @ 2019-07-30 17:50 xibuhaohao 阅读(853) 评论(0) 推荐(0) 编辑
摘要: MongoDB 分片管理(三)服务器管理 阅读全文
posted @ 2019-07-30 17:49 xibuhaohao 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.1 查看连接统计 connPoolStats,查看mongos与mongod之间的连接信息,并可得知服务器 上打开的所有连接 1.2 限制连接数量 阅读全文
posted @ 2019-07-30 17:36 xibuhaohao 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 去年的笔记 For instance, if a chunk represents a single shard key value, then MongoDB cannot split the chunk even when the chunk exceeds the size at which 阅读全文
posted @ 2019-07-30 16:31 xibuhaohao 阅读(472) 评论(0) 推荐(0) 编辑
摘要: In sharded clusters, if you do not use the _id field as the shard key, then your application must ensure the uniqueness of the values in the _id field 阅读全文
posted @ 2019-07-30 15:47 xibuhaohao 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 一、检查集群状态 1.1 使用sh.status()查看集群摘要信息 1、使用sh.status()可以查看分片信息、数据库信息、集合信息 sh.status() 如果数据块较多时,使用sh.status(true) 又是输出会很多,就不会截断,要使用如下查看 2、too many chunks t 阅读全文
posted @ 2019-07-30 13:35 xibuhaohao 阅读(2928) 评论(0) 推荐(0) 编辑