Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Created March 6, 2014 01:52
Show Gist options
  • Save FrancescaK/9380648 to your computer and use it in GitHub Desktop.
Save FrancescaK/9380648 to your computer and use it in GitHub Desktop.
STEP: Look in the config database for tag range definitions.
configdb = db.getSiblingDB("config")
configdb.tags.find().pretty()
{
"_id" : {
"ns" : "enron.messages",
"min" : {
"date" : { "$minKey" : 1 }
}
},
"ns" : "enron.messages",
"min" : {
"date" : { "$minKey" : 1 }
},
"max" : {
"date" : ISODate("2001-07-01T00:00:00Z")
},
"tag" : "archive"
}
{
"_id" : {
"ns" : "enron.messages",
"min" : {
"date" : ISODate("2001-07-01T00:00:00Z")
}
},
"ns" : "enron.messages",
"min" : {
"date" : ISODate("2001-07-01T00:00:00Z")
},
"max" : {
"date" : { "$maxKey" : 1 }
},
"tag" : "current"
}
sh.setBalancerState(true)
sh.isBalancerRunning()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment