随笔- 807
文章- 150
评论- 23
阅读-
151万
随笔分类 - NoSQL MongoDB 分片与副本集(四)其他
MongoDB 查看集合是否分片
摘要:MongoDB会把分片过的集合保存在config.collection集合中,若需要查看分片键,则需要根据该集合进行查找。官方的其他很多分片快捷命令也都处于config库 三种方式 1、去config库中查询 这种办法可以查看分片键信息 db.collections.find({$and: [ {'
阅读全文
Mongodb 分片 手动维护chunk
摘要:去年的笔记 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
阅读全文
MongoDB 集群设置集合分片生效及查看集合分片情况
摘要:一、设计DB分片与Collection分片 #连接mongos /opt/mongodb/mongodb-linux-x86_64-2.4.8/bin/mongo 127.0.0.1:27017 #使用admin数据库 use admin #指定testdb分片生效 db.runCommand( {
阅读全文