On this page本页内容
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 a mongos
instance.mongos
实例时使用db.printShardingStatus()
。
The db.printShardingStatus()
method has the following parameter:db.printShardingStatus()
方法具有以下参数:
verbose | boolean |
|
See sh.status() for details of the output.有关输出的详细信息,请参阅sh.status()。
The 在db.printShardingStatus()
method run in mongosh
does not return JSON. mongosh
中运行的dbprintShardingStatus()
方法不返回JSON。Use 使用db.printShardingStatus()
for manual inspection, and Config Database in scripts.db.printShardingStatus()
进行手动检查,并在脚本中配置数据库。