Skip to content

Instantly share code, notes, and snippets.

@asicfr
Created June 25, 2014 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asicfr/548941c0b9de7abe17fd to your computer and use it in GitHub Desktop.
Save asicfr/548941c0b9de7abe17fd to your computer and use it in GitHub Desktop.
MongoDB shell version: 2.6.3
connecting to: 127.0.0.1:61017/test
type "help" for help
--- Sharding Status ---
sharding version: {
"_id" : 1,
"version" : 4,
"minCompatibleVersion" : 4,
"currentVersion" : 5,
"clusterId" : ObjectId("53a96331481074c25a3fd0d8")
}
shards:
{ "_id" : "s1", "host" : "s1/localhost:37017,localhost:37018,localhost:37019" }
{ "_id" : "s2", "host" : "s2/localhost:47017,localhost:47018,localhost:47019" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "test", "partitioned" : true, "primary" : "s1" }
test.users
shard key: { "_id" : 1 }
chunks:
s1 1
{ "_id" : { "$minKey" : 1 } } -->> { "_id" : { "$maxKey" : 1 } } on : s1 Timestamp(1, 0)
mongos>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment