Wenn ich tippe db.help() Es gibtMongoDB mit db.help() auf einem bestimmten db Befehl
DB methods:
db.addUser(username, password[, readOnly=false])
db.auth(username, password)
...
...
db.printShardingStatus()
...
...
db.fsyncLock() flush data to disk and lock server for backups
db.fsyncUnock() unlocks server following a db.fsyncLock()
Ich möchte herausfinden, wie für den speziellen Befehl detailliertere Hilfe zu bekommen . Das Problem war, mit dem printShardingStatus als es wieder „zu viele Stücke, die ausführliche verwenden zu drucken, wenn Sie drucken möchten“
mongos> db.printShardingStatus()
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{ "_id" : "shard0000", "host" : "localhost:10001" }
{ "_id" : "shard0001", "host" : "localhost:10002" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "dbTest", "partitioned" : true, "primary" : "shard0000" }
dbTest.things chunks:
shard0001 12
shard0000 19
too many chunks to print, use verbose if you want to for
ce print
Ich fand, dass für diesen bestimmten Befehl I
boolean Parameter angeben könnendb.printShardingStatus(true)
was mit db.help() nicht angezeigt wurde.