分片故障测试

MongoDB分片故障测试和解决方案

时光总嘲笑我的痴心妄想 提交于 2019-12-07 08:51:46
一、环境 $ cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) $ uname -a Linux zhaopin-2-201 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ mongo --port 30000 MongoDB shell version: 3.0.6 connecting to: 127.0.0.1:30000/test mongos> sh.status(); --- Sharding Status --- sharding version: { "_id" : 1, "minCompatibleVersion" : 5, "currentVersion" : 6, "clusterId" : ObjectId("561728b4030ea038bcb57fa0") } shards: { "_id" : "sh0", "host" : "sh0/172.30.2.201:27010" } { "_id" : "sh1", "host" : "sh1/172.30.2.201:27011" } balancer: Currently enabled: yes