Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Created May 6, 2014 18:12
Show Gist options
  • Save FrancescaK/ab251c9b7e806bea632a to your computer and use it in GitHub Desktop.
Save FrancescaK/ab251c9b7e806bea632a to your computer and use it in GitHub Desktop.
Tiered_Storage_Gist8
sh.status()
--- Sharding Status ---
...
"clusterId" : ObjectId("53616554992f1bbce576f9fd")
}
shards:
{ "_id" : "shard0000", "host" : "Server1:27017", "tags" : [ "current" ] }
{ "_id" : "shard0001", "host" : "Server2:27017", "tags" : [ "tier-2" ] }
{ "_id" : "shard0002", "host" : "Server3:27017", "tags" : [ "tier-2" ] }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
///delete above { "_id" : "test", "partitioned" : false, "primary" : "shard0000" }
{ "_id" : "enron", "partitioned" : true, "primary" : "shard0000" }
enron.messages
shard key: { "date" : 1 }
chunks:
shard0001 1
shard0000 1
{ "date" : { "$minKey" : 1 } } -->> { "date" : ISODate("2001-07-01T00:00:00Z") } on : shard0001 Timestamp(2, 0)
{ "date" : ISODate("2001-07-01T00:00:00Z") } -->> { "date" : { "$maxKey" : 1 } } on : shard0000 Timestamp(2, 1)
tag: tier-2 { "date" : { "$minKey" : 1 } } -->> { "date" : ISODate("2001-07-01T00:00:00Z") }
tag: current { "date" : ISODate("2001-07-01T00:00:00Z") } -->> { "date" : { "$maxKey" : 1 } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment