有谁碰到过 MongoDB 无法自动 sharding 的问题?
发布于 10个月前 作者 zacard-orc 493 次浏览

按照攻略配置了数遍,一直停留在s1上。。。。

Sat Mar 15 08:30:06.113 [initandlisten] connection accepted from 192.168.137.107:54727 #95 (10 connections now open)
Sat Mar 15 08:30:28.730 [conn35] command admin.$cmd command: { writebacklisten: ObjectId('5340d8a803e9ace098bfbc5a') } ntoreturn:1 keyUpdates:0  reslen:44 300000ms
Sat Mar 15 08:30:29.164 [conn94] end connection 192.168.137.108:44537 (9 connections now open)
Sat Mar 15 08:30:29.165 [initandlisten] connection accepted from 192.168.137.108:44556 #96 (10 connections now open)
Sat Mar 15 08:30:36.143 [conn95] end connection 192.168.137.107:54727 (9 connections now open)
Sat Mar 15 08:30:36.145 [initandlisten] connection accepted from 192.168.137.107:54746 #97 (10 connections now open)
Sat Mar 15 08:30:59.193 [conn96] end connection 192.168.137.108:44556 (9 connections now open)
Sat Mar 15 08:30:59.194 [initandlisten] connection accepted from 192.168.137.108:44575 #98 (10 connections now open)
Sat Mar 15 08:31:06.176 [conn97] end connection 192.168.137.107:54746 (9 connections now open)
Sat Mar 15 08:31:06.177 [initandlisten] connection accepted from 192.168.137.107:54765 #99 (10 connections now open)
Sat Mar 15 08:31:29.225 [conn98] end connection 192.168.137.108:44575 (9 connections now open)

日志也看不出有什么问题?

mongos> db.user.stats();
{
        "sharded" : true,
        "ns" : "testdb.user",
        "count" : 100000,
        "numExtents" : 6,
        "size" : 5600000,
        "storageSize" : 11182080,
        "totalIndexSize" : 3262224,
        "indexSizes" : {
                "_id_" : 3262224
        },
        "avgObjSize" : 56,
        "nindexes" : 1,
        "nchunks" : 1,
        "shards" : {
                "s1" : {
                        "ns" : "testdb.user",
                        "count" : 100000,
                        "size" : 5600000,
                        "avgObjSize" : 56,
                        "storageSize" : 11182080,
                        "numExtents" : 6,
                        "nindexes" : 1,
                        "lastExtentSize" : 8388608,
                        "paddingFactor" : 1,
                        "systemFlags" : 1,
                        "userFlags" : 0,
                        "totalIndexSize" : 3262224,
                        "indexSizes" : {
                                "_id_" : 3262224
                        },
                        "ok" : 1
                }
        },
        "ok" : 1
}
回到顶部