db.printShardingStatus(verbose?)
This method prints a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster.
Syntax:
db.printShardingStatus()
Example
MongoDB
db.printShardingStatus()
Output:
printShardingStatus: this db does not have sharding enabled. be sure you are connecting to a mongos from the shell and not to a mongod.
No comments:
Post a Comment