Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dungmanh88/5b702bb4edfdf363cf84ac030136ef6a to your computer and use it in GitHub Desktop.
Save dungmanh88/5b702bb4edfdf363cf84ac030136ef6a to your computer and use it in GitHub Desktop.
Schedule to stop mongo sharding balancer
use config
db.settings.update( { _id : "balancer" }, { $set : { activeWindow : { start : "06:00", stop : "23:59" } } }, true )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment