Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Created March 5, 2014 16:45
Show Gist options
  • Save FrancescaK/9371078 to your computer and use it in GitHub Desktop.
Save FrancescaK/9371078 to your computer and use it in GitHub Desktop.
STEP verify sh.status()
mongos> sh.status()
--- Sharding Status ---
sharding version: {
"_id" : 1,
"version" : 3,
"minCompatibleVersion" : 3,
"currentVersion" : 4,
"clusterId" : ObjectId("5314f1487abd6cb2803696d6")
}
shards:
{ "_id" : "shard0000", "host" : "Rohit-MacBook-Pro.local:30000", "tags" : [ "current" ] }
{ "_id" : "shard0001", "host" : "Rohit-MacBook-Pro.local:30001", "tags" : [ "archive" ] }
{ "_id" : "shard0002", "host" : "Rohit-MacBook-Pro.local:30002", "tags" : [ "archive" ] }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "test", "partitioned" : false, "primary" : "shard0000" }
{ "_id" : "enron", "partitioned" : false, "primary" : "shard0000" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment