Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-845

Document output of printShardingStatus

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.2
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      It might be useful to document what the output of printShardingStatus. Most of it is self-explanatory, but the chunk output is a bit opaque (specifically the chunk update timestamp) and i don't think the use of sh.status(true) is explained.

      -- Sharding Status --- 
        sharding version: { "_id" : 1, "version" : 3 }
        shards:
      	{  "_id" : "db0",  "host" : "localhost:29017",  "tags" : [ 	"Africa" ] }
      	{  "_id" : "db1",  "host" : "localhost:29018",  "tags" : [ 	"Antartica" ] }
        databases:
      	{  "_id" : "admin",  "partitioned" : false,  "primary" : "config" }
      	{  "_id" : "test",  "partitioned" : true,  "primary" : "db0" }
      		test.locations chunks:
      				db0	5
      				db1	4
      			{ "region" : { $minKey : 1 }, "val" : { $minKey : 1 } } -->> { "region" : "Africa", "val" : { $minKey : 1 } } on : db0 Timestamp(8000, 1) 
      			{ "region" : "Africa", "val" : { $minKey : 1 } } -->> { "region" : "Africa", "val" : 2036.296193804591 } on : db0 Timestamp(8000, 42) 
      			{ "region" : "Africa", "val" : 2036.296193804591 } -->> { "region" : "Africa", "val" : 4527.909830942727 } on : db0 Timestamp(8000, 43) 
      
      

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 3 days ago