- Reference >
mongo
Shell Methods >- Database Methods >
- db.printShardingStatus()
db.printShardingStatus()¶
On this page
Definition¶
-
db.
printShardingStatus
()¶ Prints a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster.
Only use
db.printShardingStatus()
when connected to amongos
instance.The
db.printShardingStatus()
method has the following parameter:Parameter Type Description verbose
boolean Optional. If true
, the method displays details of the document distribution across chunks when you have 20 or more chunks.See sh.status() for details of the output.
Note
The
db.printShardingStatus()
in themongo
shell does not return JSON. Usedb.printShardingStatus()
for manual inspection, and Config Database in scripts.See also