Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Last active December 31, 2015 01:59
Show Gist options
  • Save FrancescaK/7917835 to your computer and use it in GitHub Desktop.
Save FrancescaK/7917835 to your computer and use it in GitHub Desktop.
sh.setBalancerState (false)
use config
#adjust lower bound of the "current" range
db.tags.update( { "tag" : "current" }, { "$set" : { "min._id" : 201208140000032543 } } )
#adjust upper bound of the "archive" range
db.tags.update( { "tag" : "archive" }, { "$set" : { "max._id" : 201208140000000000 } } )
sh.setBalancerState(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment