|
mongos> use testdb;
mongos> db.printShardingStatus();#查看分片信息
--- Sharding Status ---
sharding version: {
"_id" : 1,
"version" : 3,
"minCompatibleVersion" : 3,
"currentVersion" : 4,
"clusterId" : ObjectId("555f5b7d30c41ebb264764b1")
}
shards:
{ "_id" : "shard0000", "host" : "192.168.3.101:27018" }
{ "_id" : "shard0001", "host" : "192.168.3.102:27018" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "testdb", "partitioned" : true, "primary" : "shard0000" }
testdb.testdocument01
shard key: { "_id" : 1 }
chunks:
shard00001
{ "_id" : { "$minKey" : 1 } } -->> { "_id" : { "$maxKey" : 1 } } on : shard0000 Timestamp(1, 0)
|
|
|