Performance Mongodb分片性能问题

Performance Mongodb分片性能问题,performance,mongodb,sharding,Performance,Mongodb,Sharding,测试: -直接使用副本集插入200个图像(300-800Ko/img) -使用与碎片相同的副本集插入200个图像(300-800ko/img) 我意识到这些操作的执行时间完全不同… -使用副本集:大约30秒内拍摄200张图片 -使用分片:大约3秒。/picture=>对于这200张图片,大约7-8分钟 ==>我真的不明白为什么这些插入在切分时如此缓慢。。。我真的看不懂那张图片,你能复制一下控制台的内容并把它贴在什么地方吗? mongos> sh.status() --- Sharding

测试
-直接使用副本集插入200个图像(300-800Ko/img)
-使用与碎片相同的副本集插入200个图像(300-800ko/img)

我意识到这些操作的执行时间完全不同…
-使用副本集:大约30秒内拍摄200张图片 -使用分片:大约3秒。/picture=>对于这200张图片,大约7-8分钟


==>我真的不明白为什么这些插入在切分时如此缓慢。。。我真的看不懂那张图片,你能复制一下控制台的内容并把它贴在什么地方吗? mongos> sh.status() --- Sharding Status --- sharding version: { "_id" : 1, "version" : 3, "minCompatibleVersion" : 3, "currentVersion" : 4, "clusterId" : ObjectId("518372e807be4a15fb391fab") } shards: { "_id" : "rs0", "host" : "rs0/192.168.36.101:27017,192.168.36.102:27017,192.168.36.103:27017" } databases: { "_id" : "admin", "partitioned" : false, "primary" : "config" } { "_id" : "test", "partitioned" : false, "primary" : "rs0" } { "_id" : "bepics_gallery", "partitioned" : false, "primary" : "rs0" } { "_id" : "bepics_images", "partitioned" : true, "primary" : "rs0" } bepics_images.fs.chunks shard key: { "files_id" : 1 } chunks: rs0 9 { "files_id" : { "$minKey" : 1 } } -->> { "files_id" : ObjectId("5183926028d40965190000ea") } on : rs0 { "t" : 1, "i" : 1 } { "files_id" : ObjectId("5183926028d40965190000ea") } -->> { "files_id" : ObjectId("5183a1be28d409051e000004") } on : rs0 { "t" : 1, "i" : 3 } { "files_id" : ObjectId("5183a1be28d409051e000004") } -->> { "files_id" : ObjectId("5183a2a728d409051e00008f") } on : rs0 { "t" : 1, "i" : 5 } { "files_id" : ObjectId("5183a2a728d409051e00008f") } -->> { "files_id" : ObjectId("5183b70328d409cc1e00008f") } on : rs0 { "t" : 1, "i" : 7 } { "files_id" : ObjectId("5183b70328d409cc1e00008f") } -->> { "files_id" : ObjectId("5183c6f728d409e526000037") } on : rs0 { "t" : 1, "i" : 9 } { "files_id" : ObjectId("5183c6f728d409e526000037") } -->> { "files_id" : ObjectId("5183c76028d409e526000076") } on : rs0 { "t" : 1, "i" : 11 } { "files_id" : ObjectId("5183c76028d409e526000076") } -->> { "files_id" : ObjectId("5183c7cb28d409ea2600001f") } on : rs0 { "t" : 1, "i" : 13 } { "files_id" : ObjectId("5183c7cb28d409ea2600001f") } -->> { "files_id" : ObjectId("5183c84e28d409ea2600006d") } on : rs0 { "t" : 1, "i" : 15 } { "files_id" : ObjectId("5183c84e28d409ea2600006d") } -->> { "files_id" : { "$maxKey" : 1 } } on : rs0 { "t" : 1, "i" : 16 }