1 如何在线修改chunk大小
https://docs.mongodb.com/manual/tutorial/modify-chunk-size-in-sharded-cluster/
2 chunk size影响到了chunk的迁移
https://docs.mongodb.com/manual/reference/limits/#Maximum-Number-of-Documents-Per-Chunk-to-Migrate
3 chunk的人工迁移方法
https://docs.mongodb.com/manual/tutorial/migrate-chunks-in-sharded-cluster/
4 chunk的人工创建方法
https://docs.mongodb.com/manual/tutorial/create-chunks-in-sharded-cluster/
5 如果判断空的chunk,如何合并空的chunk
https://docs.mongodb.com/manual/tutorial/merge-chunks-in-sharded-cluster/
6 如何替换一个config server
Mongo 3.2之后,config server允许配置成副本集模式,这时必须使用wiredtiger引擎。
副本集模式下config server的替换
https://docs.mongodb.com/manual/tutorial/replace-config-server/
普通模式config server的同一host下的迁移替换
https://docs.mongodb.com/manual/tutorial/migrate-config-servers-with-same-hostname/
普通模式config server的不同host下的迁移替换
https://docs.mongodb.com/manual/tutorial/migrate-config-servers-with-different-hostnames/
7 普通模式的config servers如何升级成副本集模式(在线)
https://docs.mongodb.com/manual/tutorial/upgrade-config-servers-to-replica-set/
8普通模式的config servers如何升级成副本集模式(离线)
https://docs.mongodb.com/manual/tutorial/upgrade-config-servers-to-replica-set-downtime/
9 负载均衡器的相关操作
检查负载均衡器是否启用,sh.status()也能看(Currently enabled)
检查负载均衡器是否在负载均衡中,sh.status()也能看(Currently running)https://docs.mongodb.com/manual/reference/method/sh.startBalancer/
https://docs.mongodb.com/manual/reference/method/sh.stopBalancer/
https://docs.mongodb.com/manual/reference/method/sh.waitForBalancer/
https://docs.mongodb.com/manual/reference/method/sh.waitForBalancerOff/
https://docs.mongodb.com/manual/reference/method/sh.disableBalancing/
https://docs.mongodb.com/manual/reference/method/sh.enableBalancing/
https://docs.mongodb.com/manual/reference/method/sh.isBalancerRunning/
https://docs.mongodb.com/manual/reference/method/sh.setBalancerState/#sh.setBalancerState
10 如何对某个集合进程分片设计
https://docs.mongodb.com/manual/reference/method/sh.shardCollection/#sh.shardCollection
11 如何设置均衡器的维护时间窗口
https://docs.mongodb.com/manual/tutorial/manage-sharded-cluster-balancer/
12 如何人工清理jumbo flag实现大块的数据均衡
https://docs.mongodb.com/manual/tutorial/clear-jumbo-flag/
13 如何添加一个分片到分片集群
sh.addShard("rs1/mongodb0.example.net:27017" )
https://docs.mongodb.com/manual/reference/command/addShard/#dbcmd.addShard
14 如何从分片集群中删除一个分片
https://docs.mongodb.com/manual/tutorial/remove-shards-from-cluster/
15 如何将副本集转成成分片集群
https://docs.mongodb.com/manual/tutorial/convert-replica-set-to-replicated-shard-cluster/
16 如何将分片集群转换成副本集
https://docs.mongodb.com/manual/tutorial/convert-sharded-cluster-to-replica-set/
17 查看最近的一次块迁移
sh._lastMigration()
18 如何给分片添加标签和标签范围,删除标签
https://docs.mongodb.com/manual/tutorial/administer-shard-tags/
https://docs.mongodb.com/manual/reference/method/sh.addShardTag/
https://docs.mongodb.com/manual/reference/method/sh.addTagRange/
https://docs.mongodb.com/manual/reference/method/sh.removeTagRange/
19 查看mongos和mongod之间的连接信息和服务器上打开的所有连接
db.adminCommand({"connPoolStats":1})
20 刷新配置服务器缓存信息
db.adminCommand({"flushRouterConfig":1})